pub struct SourceRootConfig {
pub fsc: FileSetConfig,
pub local_filesets: Vec<u64>,
}Fields§
§fsc: FileSetConfig§local_filesets: Vec<u64>Implementations§
Source§impl SourceRootConfig
impl SourceRootConfig
pub fn partition(&self, vfs: &Vfs) -> Vec<SourceRoot>
Sourcepub fn source_root_parent_map(&self) -> FxHashMap<SourceRootId, SourceRootId>
pub fn source_root_parent_map(&self) -> FxHashMap<SourceRootId, SourceRootId>
Maps local source roots to their parent source roots by bytewise comparing of root paths .
If a SourceRoot doesn’t have a parent and is local then it is not contained in this mapping but it can be asserted that it is a root SourceRoot.
Trait Implementations§
Source§impl Debug for SourceRootConfig
impl Debug for SourceRootConfig
Source§impl Default for SourceRootConfig
impl Default for SourceRootConfig
Source§fn default() -> SourceRootConfig
fn default() -> SourceRootConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceRootConfig
impl RefUnwindSafe for SourceRootConfig
impl Send for SourceRootConfig
impl Sync for SourceRootConfig
impl Unpin for SourceRootConfig
impl UnwindSafe for SourceRootConfig
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
Source§impl<T> Cast for T
impl<T> Cast for T
Source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U using CastTo.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more