Struct nuts_archive::EntryBuilder
source · pub struct EntryBuilder<'a, B: Backend> { /* private fields */ }Expand description
Builder for an new entry.
An EntryBuilder instance is returned by
Archive::append(). Calling
EntryBuilder::build() will create the entry at the end of the archive.
Implementations§
source§impl<'a, B: Backend> EntryBuilder<'a, B>
impl<'a, B: Backend> EntryBuilder<'a, B>
sourcepub fn build(self) -> ArchiveResult<EntryMut<'a, B>, B>
pub fn build(self) -> ArchiveResult<EntryMut<'a, B>, B>
Finally, creates the new entry at the end of the archive.
It returns an EntryMut instance, where you are able to add content
to the entry.
Auto Trait Implementations§
impl<'a, B> !RefUnwindSafe for EntryBuilder<'a, B>
impl<'a, B> !Send for EntryBuilder<'a, B>
impl<'a, B> !Sync for EntryBuilder<'a, B>
impl<'a, B> Unpin for EntryBuilder<'a, B>
impl<'a, B> !UnwindSafe for EntryBuilder<'a, B>
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