pub struct PsbBinaryTree {
pub list: Vec<Vec<u8>>,
}Expand description
Binary tree
Fields§
§list: Vec<Vec<u8>>Implementations§
Source§impl PsbBinaryTree
impl PsbBinaryTree
pub fn new() -> Self
pub fn list(&self) -> &Vec<Vec<u8>>
pub fn list_mut(&mut self) -> &mut Vec<Vec<u8>>
pub fn len(&self) -> usize
pub fn iter(&self) -> Iter<'_, Vec<u8>>
pub fn unwrap(self) -> Vec<Vec<u8>>
pub fn from_bytes<T: Read + Seek>( stream: &mut T, ) -> Result<(u64, Self), PsbError>
pub fn build_tree(&self) -> TreeNode
pub fn write_bytes(&self, stream: &mut impl Write) -> Result<u64, PsbError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PsbBinaryTree
impl RefUnwindSafe for PsbBinaryTree
impl Send for PsbBinaryTree
impl Sync for PsbBinaryTree
impl Unpin for PsbBinaryTree
impl UnwindSafe for PsbBinaryTree
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more