#[non_exhaustive]pub struct Child<N> {
pub name: Vec<u8>,
pub kind: NodeKind,
pub node: N,
}Expand description
One name in a directory: what it is called, what is there, and the family’s own handle to
it — what FsTree::list hands back for each name, and FsTree::find for the one a path
ends at.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Vec<u8>The name. For a name FsTree::list hands back, it is the one the directory stores.
For the node FsTree::find reaches, it is the last component of the path as the
caller wrote it: the caller’s spelling where a family compares names without case, ..
or . where the path ends in one, and empty for the root and for a path of separators
alone. A separator at the end of a path ends no component.
kind: NodeKindWhat is there.
node: NThe family’s own handle to it, which the by-node operations take.
Implementations§
Trait Implementations§
impl<N: Eq> Eq for Child<N>
impl<N: PartialEq> StructuralPartialEq for Child<N>
Auto Trait Implementations§
impl<N> Freeze for Child<N>where
N: Freeze,
impl<N> RefUnwindSafe for Child<N>where
N: RefUnwindSafe,
impl<N> Send for Child<N>where
N: Send,
impl<N> Sync for Child<N>where
N: Sync,
impl<N> Unpin for Child<N>where
N: Unpin,
impl<N> UnsafeUnpin for Child<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for Child<N>where
N: UnwindSafe,
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