[−][src]Struct trie_db::node::OwnedNode
An OwnedNode
is an owned type from which a Node
can be constructed which borrows data from
the OwnedNode
. This is useful for trie iterators.
Implementations
impl<D: Borrow<[u8]>> OwnedNode<D>
[src]
pub fn new<C: NodeCodec>(data: D) -> Result<Self, C::Error>
[src]
Construct an OwnedNode
by decoding an owned data source according to some codec.
pub fn data(&self) -> &[u8]ⓘ
[src]
Returns a reference to the backing data.
pub fn node_plan(&self) -> &NodePlan
[src]
Returns a reference to the node decode plan.
pub fn node(&self) -> Node<'_>
[src]
Construct a Node
by borrowing data from this struct.
Trait Implementations
impl<D: Debug + Borrow<[u8]>> Debug for OwnedNode<D>
[src]
impl<D: Eq + Borrow<[u8]>> Eq for OwnedNode<D>
[src]
impl<D: PartialEq + Borrow<[u8]>> PartialEq<OwnedNode<D>> for OwnedNode<D>
[src]
impl<D: Borrow<[u8]>> StructuralEq for OwnedNode<D>
[src]
impl<D: Borrow<[u8]>> StructuralPartialEq for OwnedNode<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for OwnedNode<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for OwnedNode<D> where
D: Send,
D: Send,
impl<D> Sync for OwnedNode<D> where
D: Sync,
D: Sync,
impl<D> Unpin for OwnedNode<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for OwnedNode<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,