pub enum TreeBuilder {
Balanced {
degree: usize,
},
}
Variants§
Balanced
TreeBuilder that builds a “balanced tree” with a max degree size of degree
Implementations§
source§impl TreeBuilder
impl TreeBuilder
pub fn balanced_tree() -> Self
pub fn balanced_tree_with_degree(degree: usize) -> Self
pub fn stream_tree<'a>( &self, chunks: impl Stream<Item = Result<Bytes>> + CondSend + 'a, store: &'a impl BlockStore ) -> impl Stream<Item = Result<(Cid, Block)>> + 'a
Trait Implementations§
source§impl Debug for TreeBuilder
impl Debug for TreeBuilder
source§impl PartialEq for TreeBuilder
impl PartialEq for TreeBuilder
source§fn eq(&self, other: &TreeBuilder) -> bool
fn eq(&self, other: &TreeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TreeBuilder
impl StructuralEq for TreeBuilder
impl StructuralPartialEq for TreeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TreeBuilder
impl Send for TreeBuilder
impl Sync for TreeBuilder
impl Unpin for TreeBuilder
impl UnwindSafe for TreeBuilder
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