[][src]Enum sp_storage::OwnedChildInfo

pub enum OwnedChildInfo {
    Default(OwnedChildTrie),
}

Owned version of ChildInfo. To be use in persistence layers.

Variants

Methods

impl OwnedChildInfo[src]

pub fn new_default(unique_id: Vec<u8>) -> Self[src]

Instantiates info for a default child trie.

pub fn try_update(&mut self, other: ChildInfo) -> bool[src]

Try to update with another instance, return false if both instance are not compatible.

pub fn as_ref(&self) -> ChildInfo[src]

Get ChildInfo reference to this owned child info.

Trait Implementations

impl Clone for OwnedChildInfo[src]

impl Debug for OwnedChildInfo[src]

impl Eq for OwnedChildInfo[src]

impl Hash for OwnedChildInfo[src]

impl Ord for OwnedChildInfo[src]

impl PartialEq<OwnedChildInfo> for OwnedChildInfo[src]

impl PartialOrd<OwnedChildInfo> for OwnedChildInfo[src]

impl StructuralEq for OwnedChildInfo[src]

impl StructuralPartialEq for OwnedChildInfo[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.