pub enum SubtreeLookupResult<Storage: AsRef<[u8]>> {
Absent,
Unknown,
Found(HashTree<Storage>),
}Expand description
A result of looking up for a subtree.
Variants§
Absent
The subtree at the provided path is guaranteed to be absent in the original state tree.
Unknown
This partial view does not include information about this path, and the original tree may or may note include a subtree at this path.
Found(HashTree<Storage>)
The subtree was found at the provided path.
Trait Implementations§
impl<Storage: Eq + AsRef<[u8]>> Eq for SubtreeLookupResult<Storage>
impl<Storage: PartialEq + AsRef<[u8]>> StructuralPartialEq for SubtreeLookupResult<Storage>
Auto Trait Implementations§
impl<Storage> Freeze for SubtreeLookupResult<Storage>
impl<Storage> RefUnwindSafe for SubtreeLookupResult<Storage>where
HashTree<Storage>: RefUnwindSafe,
impl<Storage> Send for SubtreeLookupResult<Storage>
impl<Storage> Sync for SubtreeLookupResult<Storage>
impl<Storage> Unpin for SubtreeLookupResult<Storage>
impl<Storage> UnsafeUnpin for SubtreeLookupResult<Storage>where
HashTree<Storage>: UnsafeUnpin,
impl<Storage> UnwindSafe for SubtreeLookupResult<Storage>where
HashTree<Storage>: 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