pub struct FilePathContext<'l> { /* private fields */ }Expand description
Contains information for a single file path.
Implementations§
Source§impl<'l> FilePathContext<'l>
impl<'l> FilePathContext<'l>
Sourcepub fn new(project_ctx: &'l ProjectContext<'l>, file_path: &'l Utf8Path) -> Self
pub fn new(project_ctx: &'l ProjectContext<'l>, file_path: &'l Utf8Path) -> Self
Constructs a new context.
Sourcepub fn project_ctx(&self) -> &'l ProjectContext<'l>
pub fn project_ctx(&self) -> &'l ProjectContext<'l>
Returns the project context.
Trait Implementations§
Source§impl<'l> Clone for FilePathContext<'l>
impl<'l> Clone for FilePathContext<'l>
Auto Trait Implementations§
impl<'l> Freeze for FilePathContext<'l>
impl<'l> RefUnwindSafe for FilePathContext<'l>
impl<'l> Send for FilePathContext<'l>
impl<'l> Sync for FilePathContext<'l>
impl<'l> Unpin for FilePathContext<'l>
impl<'l> UnsafeUnpin for FilePathContext<'l>
impl<'l> UnwindSafe for FilePathContext<'l>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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 moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.