NodeResolutionSys

Struct NodeResolutionSys 

Source
pub struct NodeResolutionSys<TSys> { /* private fields */ }

Implementations§

Source§

impl<TSys: FsMetadata> NodeResolutionSys<TSys>

Source

pub fn new(sys: TSys, store: Option<NodeResolutionCacheRc>) -> Self

Source

pub fn is_file(&self, path: &Path) -> bool

Source

pub fn is_dir(&self, path: &Path) -> bool

Source

pub fn exists_(&self, path: &Path) -> bool

Source

pub fn get_file_type(&self, path: &Path) -> Result<FileType>

Trait Implementations§

Source§

impl<TSys: FsOpen> BaseFsOpen for NodeResolutionSys<TSys>

Source§

type File = <TSys as BaseFsOpen>::File

Source§

impl<TSys: FsReadDir> BaseFsReadDir for NodeResolutionSys<TSys>

Source§

impl<TSys: Clone> Clone for NodeResolutionSys<TSys>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<TSys: Debug> Debug for NodeResolutionSys<TSys>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<TSys: Default> Default for NodeResolutionSys<TSys>

Source§

fn default() -> NodeResolutionSys<TSys>

Returns the “default value” for a type. Read more
Source§

impl<TSys: FsCanonicalize> BaseFsCanonicalize for NodeResolutionSys<TSys>

Source§

impl<TSys: FsRead> BaseFsRead for NodeResolutionSys<TSys>

Auto Trait Implementations§

§

impl<TSys> Freeze for NodeResolutionSys<TSys>
where TSys: Freeze,

§

impl<TSys> !RefUnwindSafe for NodeResolutionSys<TSys>

§

impl<TSys> !Send for NodeResolutionSys<TSys>

§

impl<TSys> !Sync for NodeResolutionSys<TSys>

§

impl<TSys> Unpin for NodeResolutionSys<TSys>
where TSys: Unpin,

§

impl<TSys> !UnwindSafe for NodeResolutionSys<TSys>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FsCanonicalize for T

Source§

impl<T> FsOpen for T
where T: BaseFsOpen,

Source§

fn fs_open( &self, path: impl AsRef<Path>, options: &OpenOptions, ) -> Result<Self::File, Error>

Source§

impl<TFile, T> FsOpenBoxed for T
where TFile: FsFile + 'static, T: BaseFsOpen<File = TFile>,

Source§

fn fs_open_boxed( &self, path: &Path, open_options: &OpenOptions, ) -> Result<BoxedFsFile, Error>

Source§

impl<T> FsRead for T
where T: BaseFsRead,

Source§

fn fs_read(&self, path: impl AsRef<Path>) -> Result<Cow<'static, [u8]>, Error>

Source§

fn fs_read_to_string( &self, path: impl AsRef<Path>, ) -> Result<Cow<'static, str>, Error>

Source§

fn fs_read_to_string_lossy( &self, path: impl AsRef<Path>, ) -> Result<Cow<'static, str>, Error>

Source§

impl<T> FsReadDir for T
where T: BaseFsReadDir,

Source§

fn fs_read_dir( &self, path: impl AsRef<Path>, ) -> Result<Box<dyn Iterator<Item = Result<Self::ReadDirEntry, Error>>>, Error>

Source§

impl<T> FsReadDirBoxed for T
where T: BaseFsReadDir,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSend for T
where T: ?Sized,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> MaybeSync for T
where T: ?Sized,