pub struct PathAndMetadata {
pub path: Path,
pub metadata: FileMetadata,
}Expand description
Convenience struct for holding a path to a file and its metadata together
Fields§
§path: Path§metadata: FileMetadataImplementations§
Source§impl PathAndMetadata
impl PathAndMetadata
pub fn new(path: Path) -> Result<PathAndMetadata>
Trait Implementations§
Source§impl AsRef<FileId> for PathAndMetadata
impl AsRef<FileId> for PathAndMetadata
Source§impl AsRef<Path> for PathAndMetadata
impl AsRef<Path> for PathAndMetadata
Source§impl AsRef<PathAndMetadata> for PathAndMetadata
impl AsRef<PathAndMetadata> for PathAndMetadata
Source§fn as_ref(&self) -> &PathAndMetadata
fn as_ref(&self) -> &PathAndMetadata
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PathAndMetadata
impl Clone for PathAndMetadata
Source§fn clone(&self) -> PathAndMetadata
fn clone(&self) -> PathAndMetadata
Returns a duplicate 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 moreSource§impl Debug for PathAndMetadata
impl Debug for PathAndMetadata
Source§impl Display for PathAndMetadata
impl Display for PathAndMetadata
Source§impl From<PathAndMetadata> for Path
impl From<PathAndMetadata> for Path
Source§fn from(value: PathAndMetadata) -> Self
fn from(value: PathAndMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathAndMetadata
impl RefUnwindSafe for PathAndMetadata
impl Send for PathAndMetadata
impl Sync for PathAndMetadata
impl Unpin for PathAndMetadata
impl UnwindSafe for PathAndMetadata
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<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