pub struct LooseEncoder { /* private fields */ }Expand description
A resumable loose object encoder. Repository bytes and metadata must remain
stable. Uses the same stored blocks as write_loose_with_scratch.
Implementations§
Source§impl LooseEncoder
impl LooseEncoder
pub fn new( repository: &impl Repository, index: usize, ) -> Result<LooseEncoder, Error>
pub fn read( &mut self, repository: &impl Repository, output: &mut [u8], ) -> Result<usize, Error>
Auto Trait Implementations§
impl Freeze for LooseEncoder
impl RefUnwindSafe for LooseEncoder
impl Send for LooseEncoder
impl Sync for LooseEncoder
impl Unpin for LooseEncoder
impl UnsafeUnpin for LooseEncoder
impl UnwindSafe for LooseEncoder
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