[−][src]Enum bm_le::Value
Value in a merkle tree.
Variants
Intermediate(I)Intermediate, which is hash of two sub-items.
End(E)End value of the tree.
Methods
impl<I, E> Value<I, E>[src]
pub fn intermediate(self) -> Option<I>[src]
Return Some if this value is an intermediate, otherwise return None.
pub fn end(self) -> Option<E>[src]
Return Some if this value is an end value, otherwise return None.
Trait Implementations
impl<'de, I, E> Deserialize<'de> for Value<I, E> where
E: Deserialize<'de>,
I: Deserialize<'de>, [src]
E: Deserialize<'de>,
I: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Value<I, E>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<Value<I, E>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<I, E> PartialEq<Value<I, E>> for Value<I, E> where
E: PartialEq<E>,
I: PartialEq<I>, [src]
E: PartialEq<E>,
I: PartialEq<I>,
impl<I, E> Serialize for Value<I, E> where
E: Serialize,
I: Serialize, [src]
E: Serialize,
I: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<I, E> AsRef<[u8]> for Value<I, E> where
E: AsRef<[u8]>,
I: AsRef<[u8]>, [src]
E: AsRef<[u8]>,
I: AsRef<[u8]>,
impl<I, E> Debug for Value<I, E> where
E: Debug,
I: Debug, [src]
E: Debug,
I: Debug,
impl<I, E> Clone for Value<I, E> where
E: Clone,
I: Clone, [src]
E: Clone,
I: Clone,
fn clone(&self) -> Value<I, E>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<I, E> Eq for Value<I, E> where
E: Eq,
I: Eq, [src]
E: Eq,
I: Eq,
impl IntoTree for Value<Intermediate, End>[src]
fn into_tree<DB: WriteBackend>(
&self,
_db: &mut DB
) -> Result<ValueOf<DB::Construct>, Error<DB::Error>> where
DB::Construct: CompatibleConstruct, [src]
&self,
_db: &mut DB
) -> Result<ValueOf<DB::Construct>, Error<DB::Error>> where
DB::Construct: CompatibleConstruct,
impl FromTree for Value<Intermediate, End>[src]
Auto Trait Implementations
impl<I, E> Sync for Value<I, E> where
E: Sync,
I: Sync,
E: Sync,
I: Sync,
impl<I, E> Send for Value<I, E> where
E: Send,
I: Send,
E: Send,
I: Send,
impl<I, E> Unpin for Value<I, E> where
E: Unpin,
I: Unpin,
E: Unpin,
I: Unpin,
impl<I, E> RefUnwindSafe for Value<I, E> where
E: RefUnwindSafe,
I: RefUnwindSafe,
E: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, E> UnwindSafe for Value<I, E> where
E: UnwindSafe,
I: UnwindSafe,
E: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,