Struct x_lint::file_path::FilePathContext
source · 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>
source§fn clone(&self) -> FilePathContext<'l>
fn clone(&self) -> FilePathContext<'l>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
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> UnwindSafe for FilePathContext<'l>
Blanket Implementations§
§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more