pub enum CellSignature {
KeyNode,
KeyValue,
SecurityKey,
FastLeaf,
HashLeaf,
IndexLeaf,
RootIndex,
BigData,
}Expand description
Two-byte cell signature identifying the cell type.
Variants§
KeyNode
nk — Key Node
KeyValue
vk — Key Value
SecurityKey
sk — Security Key
FastLeaf
lf — Fast Leaf (subkey index with name hints)
HashLeaf
lh — Hash Leaf (subkey index with name hashes)
IndexLeaf
li — Index Leaf (simple subkey index)
RootIndex
ri — Root Index (index of subkey indices)
BigData
db — Big Data
Implementations§
Source§impl CellSignature
impl CellSignature
Sourcepub fn from_bytes(bytes: &[u8; 2]) -> Option<Self>
pub fn from_bytes(bytes: &[u8; 2]) -> Option<Self>
Parse a 2-byte signature.
Trait Implementations§
Source§impl Clone for CellSignature
impl Clone for CellSignature
Source§fn clone(&self) -> CellSignature
fn clone(&self) -> CellSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CellSignature
Source§impl Debug for CellSignature
impl Debug for CellSignature
impl Eq for CellSignature
Source§impl PartialEq for CellSignature
impl PartialEq for CellSignature
Source§fn eq(&self, other: &CellSignature) -> bool
fn eq(&self, other: &CellSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CellSignature
Auto Trait Implementations§
impl Freeze for CellSignature
impl RefUnwindSafe for CellSignature
impl Send for CellSignature
impl Sync for CellSignature
impl Unpin for CellSignature
impl UnsafeUnpin for CellSignature
impl UnwindSafe for CellSignature
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