[][src]Struct trie_db::node::OwnedNode

pub struct OwnedNode<D: Borrow<[u8]>> { /* fields omitted */ }

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]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [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

impl<D> Send for OwnedNode<D> where
    D: Send

impl<D> Sync for OwnedNode<D> where
    D: Sync

impl<D> Unpin for OwnedNode<D> where
    D: Unpin

impl<D> UnwindSafe for OwnedNode<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.