pub trait AsSegments {
// Required method
fn to_segments(self, db: &dyn SyntaxGroup) -> Vec<PathSegment>;
}
Expand description
A trait for things that can be interpreted as a path of segments.
pub trait AsSegments {
// Required method
fn to_segments(self, db: &dyn SyntaxGroup) -> Vec<PathSegment>;
}
A trait for things that can be interpreted as a path of segments.