pub enum BytesTree {
Empty,
Leaf(Rc<[u8]>),
Node(Rc<BytesNode>),
}Variants§
Implementations§
Source§impl BytesTree
impl BytesTree
pub fn empty() -> Self
pub fn from_bytes(value: &[u8]) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn concat(left: Self, right: Self) -> Self
pub fn index(&self, index: usize) -> Option<u8>
pub fn index_range(&self, start: usize, end: usize) -> Option<Self>
pub fn splice(&self, start: usize, end: usize, insert: Self) -> Option<Self>
pub fn to_flat_vec(&self) -> Vec<u8> ⓘ
pub fn view(&self) -> BytesView
pub fn black_height(&self) -> usize
pub fn is_red_black_well_formed(&self) -> bool
Trait Implementations§
impl Eq for BytesTree
impl StructuralPartialEq for BytesTree
Auto Trait Implementations§
impl Freeze for BytesTree
impl RefUnwindSafe for BytesTree
impl !Send for BytesTree
impl !Sync for BytesTree
impl Unpin for BytesTree
impl UnsafeUnpin for BytesTree
impl UnwindSafe for BytesTree
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