Struct cfx_storage::VanillaChildrenTable
source · pub struct VanillaChildrenTable<NodeRefT: NodeRefTrait> { /* private fields */ }
Implementations§
source§impl<NodeRefT: 'static + NodeRefTrait> VanillaChildrenTable<NodeRefT>
impl<NodeRefT: 'static + NodeRefTrait> VanillaChildrenTable<NodeRefT>
pub fn new_from_one_child(child_index: u8, child: &NodeRefT) -> Selfwhere
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
pub fn get_children_table(&self) -> &[NodeRefT; 16]
pub fn get_children_count(&self) -> u8
pub unsafe fn get_children_count_mut(&mut self) -> &mut u8
pub fn get_child(&self, child_index: u8) -> Option<&NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
pub unsafe fn get_child_mut_unchecked( &mut self, child_index: u8 ) -> &mut NodeRefT
pub fn iter(&self) -> VanillaChildrenTableIterator<'_, NodeRefT>
Trait Implementations§
source§impl<NodeRefT: Clone + NodeRefTrait> Clone for VanillaChildrenTable<NodeRefT>
impl<NodeRefT: Clone + NodeRefTrait> Clone for VanillaChildrenTable<NodeRefT>
source§fn clone(&self) -> VanillaChildrenTable<NodeRefT>
fn clone(&self) -> VanillaChildrenTable<NodeRefT>
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<NodeRefT: Debug + NodeRefTrait> Debug for VanillaChildrenTable<NodeRefT>
impl<NodeRefT: Debug + NodeRefTrait> Debug for VanillaChildrenTable<NodeRefT>
source§impl<NodeRefT: 'static + NodeRefTrait> Decodable for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
impl<NodeRefT: 'static + NodeRefTrait> Decodable for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
source§impl<NodeRefT: 'static + NodeRefTrait> Default for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
impl<NodeRefT: 'static + NodeRefTrait> Default for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
source§impl<'a, NodeRefT: 'static + NodeRefTrait + Deserialize<'a>> Deserialize<'a> for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
impl<'a, NodeRefT: 'static + NodeRefTrait + Deserialize<'a>> Deserialize<'a> for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<NodeRefT: 'static + NodeRefTrait> Encodable for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
impl<NodeRefT: 'static + NodeRefTrait> Encodable for VanillaChildrenTable<NodeRefT>where
ChildrenTableItem<NodeRefT>: DefaultChildrenItem<NodeRefT>,
source§impl From<[H256; 16]> for VanillaChildrenTable<MerkleHash>
impl From<[H256; 16]> for VanillaChildrenTable<MerkleHash>
source§fn from(x: [MerkleHash; 16]) -> Self
fn from(x: [MerkleHash; 16]) -> Self
Converts to this type from the input type.
source§impl From<Option<[H256; 16]>> for VanillaChildrenTable<MerkleHash>
impl From<Option<[H256; 16]>> for VanillaChildrenTable<MerkleHash>
source§impl<NodeRefT> MallocSizeOf for VanillaChildrenTable<NodeRefT>where
NodeRefT: MallocSizeOf + NodeRefTrait,
impl<NodeRefT> MallocSizeOf for VanillaChildrenTable<NodeRefT>where
NodeRefT: MallocSizeOf + NodeRefTrait,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl<NodeRefT: PartialEq + NodeRefTrait> PartialEq for VanillaChildrenTable<NodeRefT>
impl<NodeRefT: PartialEq + NodeRefTrait> PartialEq for VanillaChildrenTable<NodeRefT>
source§fn eq(&self, other: &VanillaChildrenTable<NodeRefT>) -> bool
fn eq(&self, other: &VanillaChildrenTable<NodeRefT>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<NodeRefT: NodeRefTrait + Serialize> Serialize for VanillaChildrenTable<NodeRefT>
impl<NodeRefT: NodeRefTrait + Serialize> Serialize for VanillaChildrenTable<NodeRefT>
impl<NodeRefT: NodeRefTrait> StructuralPartialEq for VanillaChildrenTable<NodeRefT>
Auto Trait Implementations§
impl<NodeRefT> RefUnwindSafe for VanillaChildrenTable<NodeRefT>where
NodeRefT: RefUnwindSafe,
impl<NodeRefT> Send for VanillaChildrenTable<NodeRefT>where
NodeRefT: Send,
impl<NodeRefT> Sync for VanillaChildrenTable<NodeRefT>where
NodeRefT: Sync,
impl<NodeRefT> Unpin for VanillaChildrenTable<NodeRefT>where
NodeRefT: Unpin,
impl<NodeRefT> UnwindSafe for VanillaChildrenTable<NodeRefT>where
NodeRefT: UnwindSafe,
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