[−][src]Struct yadf::DirEntry
Serialization wrapper for ignore::DirEntry
Methods from Deref<Target = DirEntry>
pub fn path(&self) -> &Path
[src]
The full path that this entry represents.
pub fn path_is_symlink(&self) -> bool
[src]
Whether this entry corresponds to a symbolic link or not.
pub fn is_stdin(&self) -> bool
[src]
Returns true if and only if this entry corresponds to stdin.
i.e., The entry has depth 0 and its file name is -
.
pub fn metadata(&self) -> Result<Metadata, Error>
[src]
Return the metadata for the file that this entry points to.
pub fn file_type(&self) -> Option<FileType>
[src]
Return the file type for the file that this entry points to.
This entry doesn't have a file type if it corresponds to stdin.
pub fn file_name(&self) -> &OsStr
[src]
Return the file name of this entry.
If this entry has no file name (e.g., /
), then the full path is
returned.
pub fn depth(&self) -> usize
[src]
Returns the depth at which this entry was created relative to the root.
pub fn ino(&self) -> Option<u64>
[src]
Returns the underlying inode number if one exists.
If this entry doesn't have an inode number, then None
is returned.
pub fn error(&self) -> Option<&Error>
[src]
Returns an error, if one exists, associated with processing this entry.
An example of an error is one that occurred while parsing an ignore file. Errors related to traversing a directory tree itself are reported as part of yielding the directory entry, and not with this method.
Trait Implementations
impl AsRef<Path> for DirEntry
[src]
impl Debug for DirEntry
[src]
impl Deref for DirEntry
[src]
impl Display for DirEntry
[src]
impl Serialize for DirEntry
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl !UnwindSafe for DirEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,