Struct trie_db::node::OwnedNode [−][src]
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]
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: Eq + Borrow<[u8]>> Eq 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,