pub struct SiblingExpansion {
pub prefix: String,
pub extension: String,
pub root_only: bool,
}Expand description
Describes how to find sibling files that belong to the same logical module/package. Used by import resolution to expand candidate search scope.
Fields§
§prefix: StringDirectory prefix to match (e.g., “pkg/” or “” for root-level).
extension: StringFile extension to match (e.g., “go”, “py”). Empty means any extension.
root_only: boolIf true, only match files without directory separators (root-level only).
Auto Trait Implementations§
impl Freeze for SiblingExpansion
impl RefUnwindSafe for SiblingExpansion
impl Send for SiblingExpansion
impl Sync for SiblingExpansion
impl Unpin for SiblingExpansion
impl UnsafeUnpin for SiblingExpansion
impl UnwindSafe for SiblingExpansion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more