pub struct TreeDBMutBuilder<'db, const D: usize, H: Hasher> { /* private fields */ }
Expand description
TreeDBMutBuilder use to build a TreeDBMut
Implementations§
Source§impl<'db, const D: usize, H: Hasher> TreeDBMutBuilder<'db, D, H>
impl<'db, const D: usize, H: Hasher> TreeDBMutBuilder<'db, D, H>
Sourcepub fn new(
db: &'db mut dyn HashDB<H, DBValue>,
root: &'db mut H::Out,
) -> Result<Self, TreeError>
pub fn new( db: &'db mut dyn HashDB<H, DBValue>, root: &'db mut H::Out, ) -> Result<Self, TreeError>
Construct a new TreeDBMutBuilder
Sourcepub fn with_recorder(self, recorder: &'db mut dyn TreeRecorder<H>) -> Self
pub fn with_recorder(self, recorder: &'db mut dyn TreeRecorder<H>) -> Self
Add a recorder to the TreeDBMutBuilder
Sourcepub fn with_optional_recorder<'recorder: 'db>(
self,
recorder: Option<&'recorder mut dyn TreeRecorder<H>>,
) -> Self
pub fn with_optional_recorder<'recorder: 'db>( self, recorder: Option<&'recorder mut dyn TreeRecorder<H>>, ) -> Self
Add an optional recorder to the TreeDBMutBuilder
Auto Trait Implementations§
impl<'db, const D: usize, H> Freeze for TreeDBMutBuilder<'db, D, H>
impl<'db, const D: usize, H> !RefUnwindSafe for TreeDBMutBuilder<'db, D, H>
impl<'db, const D: usize, H> !Send for TreeDBMutBuilder<'db, D, H>
impl<'db, const D: usize, H> !Sync for TreeDBMutBuilder<'db, D, H>
impl<'db, const D: usize, H> Unpin for TreeDBMutBuilder<'db, D, H>
impl<'db, const D: usize, H> !UnwindSafe for TreeDBMutBuilder<'db, D, H>
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