pub struct ManifestBranch { /* private fields */ }Implementations§
Source§impl ManifestBranch
impl ManifestBranch
Sourcepub fn new(
depth: u8,
children: Vec<ManifestChild>,
) -> Result<ManifestBranch, ManifestNodeError>
pub fn new( depth: u8, children: Vec<ManifestChild>, ) -> Result<ManifestBranch, ManifestNodeError>
Build a branch, sorting children into ascending bitmap-slot order.
pub fn depth(&self) -> u8
pub fn children(&self) -> &[ManifestChild]
pub fn bitmap(&self) -> u32
pub fn child_at(&self, slot: u8) -> Option<&ManifestChild>
Trait Implementations§
Source§impl Clone for ManifestBranch
impl Clone for ManifestBranch
Source§fn clone(&self) -> ManifestBranch
fn clone(&self) -> ManifestBranch
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 moreSource§impl Debug for ManifestBranch
impl Debug for ManifestBranch
impl Eq for ManifestBranch
Source§impl PartialEq for ManifestBranch
impl PartialEq for ManifestBranch
impl StructuralPartialEq for ManifestBranch
Auto Trait Implementations§
impl Freeze for ManifestBranch
impl RefUnwindSafe for ManifestBranch
impl Send for ManifestBranch
impl Sync for ManifestBranch
impl Unpin for ManifestBranch
impl UnsafeUnpin for ManifestBranch
impl UnwindSafe for ManifestBranch
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