#[repr(C)]pub struct ExtendedRecord {
pub source: Record,
pub parity: Record,
}Expand description
Source record together with parity chunks produced from it by erasure coding, which together are all s-buckets of a record.
NOTE: This is a stack-allocated data structure and can cause stack overflow!
Fields§
§source: RecordSource chunks
parity: RecordParity chunks
Implementations§
Source§impl ExtendedRecord
impl ExtendedRecord
Sourcepub const fn as_records(&self) -> &[Record; 2]
pub const fn as_records(&self) -> &[Record; 2]
Source and parity records as an array
Sourcepub const fn as_records_mut(&mut self) -> &mut [Record; 2]
pub const fn as_records_mut(&mut self) -> &mut [Record; 2]
Source and parity records as a mutable array
Sourcepub fn as_s_buckets(&self) -> &[RecordChunk; 65536]
pub fn as_s_buckets(&self) -> &[RecordChunk; 65536]
Chunks of all s-buckets, source chunks followed by parity chunks
Sourcepub fn as_s_buckets_mut(&mut self) -> &mut [RecordChunk; 65536]
pub fn as_s_buckets_mut(&mut self) -> &mut [RecordChunk; 65536]
Mutable chunks of all s-buckets, source chunks followed by parity chunks
Trait Implementations§
Source§impl Clone for ExtendedRecord
impl Clone for ExtendedRecord
impl Copy for ExtendedRecord
Source§impl Debug for ExtendedRecord
impl Debug for ExtendedRecord
impl Eq for ExtendedRecord
Source§impl Index<SBucket> for ExtendedRecord
impl Index<SBucket> for ExtendedRecord
Source§impl IndexMut<SBucket> for ExtendedRecord
impl IndexMut<SBucket> for ExtendedRecord
Source§impl PartialEq for ExtendedRecord
impl PartialEq for ExtendedRecord
impl StructuralPartialEq for ExtendedRecord
Auto Trait Implementations§
impl Forget for ExtendedRecord
impl Freeze for ExtendedRecord
impl RefUnwindSafe for ExtendedRecord
impl Send for ExtendedRecord
impl Sync for ExtendedRecord
impl Unpin for ExtendedRecord
impl UnsafeUnpin for ExtendedRecord
impl UnwindSafe for ExtendedRecord
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