pub struct DeferredMetadata(/* private fields */);Expand description
A metadata payload whose final form needs the written (deduplicated) counts.
See IntoMetadata.
Implementations§
Source§impl DeferredMetadata
impl DeferredMetadata
Sourcepub fn new(f: impl FnOnce(FinalCounts) -> Vec<u8> + 'static) -> DeferredMetadata
pub fn new(f: impl FnOnce(FinalCounts) -> Vec<u8> + 'static) -> DeferredMetadata
Defer f until the indexes are built and the true counts are known.
Sourcepub fn none() -> DeferredMetadata
pub fn none() -> DeferredMetadata
No metadata section — byte-identical to a metadata-free build. Lets one
match arm opt out while the other defers, without a type mismatch.
Trait Implementations§
Source§impl IntoMetadata for DeferredMetadata
impl IntoMetadata for DeferredMetadata
Source§fn into_metadata(self, counts: FinalCounts) -> Vec<u8> ⓘ
fn into_metadata(self, counts: FinalCounts) -> Vec<u8> ⓘ
Produce the metadata section payload for a file with these counts.
Auto Trait Implementations§
impl !RefUnwindSafe for DeferredMetadata
impl !Send for DeferredMetadata
impl !Sync for DeferredMetadata
impl !UnwindSafe for DeferredMetadata
impl Freeze for DeferredMetadata
impl Unpin for DeferredMetadata
impl UnsafeUnpin for DeferredMetadata
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