Enum commit_verify::merkle::NodeBranching
source · #[repr(u8)]pub enum NodeBranching {
Void = 0,
Single = 1,
Branch = 2,
}
Expand description
Type of merkle node branching.
Variants§
Void = 0
Void node: virtual node with no leafs.
Used when the total width of the three is not a power two.
Single = 1
Node having just a single leaf, with the second branch being void.
Branch = 2
Node having two branches.
Trait Implementations§
source§impl Clone for NodeBranching
impl Clone for NodeBranching
source§fn clone(&self) -> NodeBranching
fn clone(&self) -> NodeBranching
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeBranching
impl Debug for NodeBranching
source§impl From<NodeBranching> for u8
impl From<NodeBranching> for u8
source§fn from(value: NodeBranching) -> u8
fn from(value: NodeBranching) -> u8
Converts to this type from the input type.
source§impl Hash for NodeBranching
impl Hash for NodeBranching
source§impl PartialEq for NodeBranching
impl PartialEq for NodeBranching
source§impl StrictDecode for NodeBranching
impl StrictDecode for NodeBranching
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
source§impl StrictDumb for NodeBranching
impl StrictDumb for NodeBranching
fn strict_dumb() -> Self
source§impl StrictEncode for NodeBranching
impl StrictEncode for NodeBranching
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
source§impl StrictEnum for NodeBranching
impl StrictEnum for NodeBranching
fn from_variant_name( name: &VariantName, ) -> Result<Self, VariantError<&VariantName>>
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictSum for NodeBranching
impl StrictSum for NodeBranching
const ALL_VARIANTS: &'static [(u8, &'static str)] = _
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<VariantName>
fn variant_ord(&self) -> u8
source§impl StrictType for NodeBranching
impl StrictType for NodeBranching
const STRICT_LIB_NAME: &'static str = LIB_NAME_COMMIT_VERIFY
fn strict_name() -> Option<TypeName>
source§impl TryFrom<u8> for NodeBranching
impl TryFrom<u8> for NodeBranching
impl Copy for NodeBranching
impl Eq for NodeBranching
impl StructuralPartialEq for NodeBranching
Auto Trait Implementations§
impl Freeze for NodeBranching
impl RefUnwindSafe for NodeBranching
impl Send for NodeBranching
impl Sync for NodeBranching
impl Unpin for NodeBranching
impl UnwindSafe for NodeBranching
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.