pub struct SlabArtifact {
pub id: SlabId,
pub bytes: Vec<u8>,
pub locator: String,
pub drop_ids: Vec<[u8; 32]>,
}Expand description
One slab produced by the writer. The slab ordinal in id matches
the slab’s position in WriteArtifact::slabs.
Fields§
§id: SlabId§bytes: Vec<u8>§locator: String§drop_ids: Vec<[u8; 32]>DropIds contained in this slab, in slab order. Used by callers
that need to know which slab holds which drop without re-parsing
the slab bytes.
Trait Implementations§
Source§impl Clone for SlabArtifact
impl Clone for SlabArtifact
Source§fn clone(&self) -> SlabArtifact
fn clone(&self) -> SlabArtifact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SlabArtifact
impl RefUnwindSafe for SlabArtifact
impl Send for SlabArtifact
impl Sync for SlabArtifact
impl Unpin for SlabArtifact
impl UnsafeUnpin for SlabArtifact
impl UnwindSafe for SlabArtifact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more