pub struct OwnedEntry {
pub tree: Arc<FsTree>,
pub id: EntryId,
}Fields§
§tree: Arc<FsTree>§id: EntryIdImplementations§
Methods from Deref<Target = Entry>§
Sourcepub fn relative_path(&self) -> &Path
pub fn relative_path(&self) -> &Path
Path relative to the root tree of self.
Sourcepub fn path_relative_to(&self, other: &Entry) -> Option<&Path>
pub fn path_relative_to(&self, other: &Entry) -> Option<&Path>
Path relative to other. self must be super-path of other.
Trait Implementations§
Source§impl Clone for OwnedEntry
impl Clone for OwnedEntry
Source§fn clone(&self) -> OwnedEntry
fn clone(&self) -> OwnedEntry
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 moreSource§impl Debug for OwnedEntry
impl Debug for OwnedEntry
Source§impl Deref for OwnedEntry
impl Deref for OwnedEntry
Source§impl PartialEq for OwnedEntry
impl PartialEq for OwnedEntry
impl Eq for OwnedEntry
Auto Trait Implementations§
impl Freeze for OwnedEntry
impl RefUnwindSafe for OwnedEntry
impl Send for OwnedEntry
impl Sync for OwnedEntry
impl Unpin for OwnedEntry
impl UnwindSafe for OwnedEntry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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