pub struct Tree {
pub nodes: Vec<Node>,
}Fields§
§nodes: Vec<Node>The nodes contained in the tree.
This is usually sorted by Node.name(), i.e. by the node name as OsString
Implementations§
Source§impl Tree
impl Tree
Sourcepub(crate) fn from_backend(
be: &impl DecryptReadBackend,
index: &impl ReadGlobalIndex,
id: TreeId,
) -> RusticResult<Self>
pub(crate) fn from_backend( be: &impl DecryptReadBackend, index: &impl ReadGlobalIndex, id: TreeId, ) -> RusticResult<Self>
Sourcepub(crate) fn node_from_path(
be: &impl DecryptReadBackend,
index: &impl ReadGlobalIndex,
id: TreeId,
path: &Path,
) -> RusticResult<Node>
pub(crate) fn node_from_path( be: &impl DecryptReadBackend, index: &impl ReadGlobalIndex, id: TreeId, path: &Path, ) -> RusticResult<Node>
pub(crate) fn find_nodes_from_path( be: &impl DecryptReadBackend, index: &impl ReadGlobalIndex, ids: impl IntoIterator<Item = TreeId>, path: &Path, ) -> RusticResult<FindNode>
pub(crate) fn find_matching_nodes( be: &impl DecryptReadBackend, index: &impl ReadGlobalIndex, ids: impl IntoIterator<Item = TreeId>, matches: &impl Fn(&Path, &Node) -> bool, ) -> RusticResult<FindMatches>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tree
impl<'de> Deserialize<'de> for Tree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoIterator for Tree
impl IntoIterator for Tree
Auto Trait Implementations§
impl Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnsafeUnpin for Tree
impl UnwindSafe for Tree
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