#[repr(C)]pub struct ChunkDescriptor {
pub segment: SegmentID,
pub chunk: ChunkID,
pub len: NonZeroUsize,
}Expand description
Uniquely identifies the particular chunk within particular segment
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
Fields§
§segment: SegmentID§chunk: ChunkID§len: NonZeroUsizeImplementations§
Source§impl ChunkDescriptor
impl ChunkDescriptor
Sourcepub const fn has_optimal_layout() -> bool
pub const fn has_optimal_layout() -> bool
Returns true if the layout for ChunkDescriptor is smaller or equal to that Rust would have generated for it.
Source§impl ChunkDescriptor
impl ChunkDescriptor
Sourcepub fn new(segment: SegmentID, chunk: ChunkID, len: NonZeroUsize) -> Self
pub fn new(segment: SegmentID, chunk: ChunkID, len: NonZeroUsize) -> Self
Create a new Chunk Descriptor
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
Trait Implementations§
Source§impl Clone for ChunkDescriptor
impl Clone for ChunkDescriptor
Source§fn clone(&self) -> ChunkDescriptor
fn clone(&self) -> ChunkDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkDescriptor
impl Debug for ChunkDescriptor
Source§impl IStable for ChunkDescriptor
impl IStable for ChunkDescriptor
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64 = 18_349_922_111_454_475_829u64
const ID: u64 = 18_349_922_111_454_475_829u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::UnusedBits
type UnusedBits = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type Size = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::Size
type Size = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::Size
The size of the annotated type in bytes.
Source§type Align = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::Align
type Align = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::Align
The alignment of the annotated type in bytes.
Source§type HasExactlyOneNiche = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<FieldPair<FieldPair<u32, u32>, NonZero<usize>>> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§impl PartialEq for ChunkDescriptor
impl PartialEq for ChunkDescriptor
impl Eq for ChunkDescriptor
impl StructuralPartialEq for ChunkDescriptor
Auto Trait Implementations§
impl Freeze for ChunkDescriptor
impl RefUnwindSafe for ChunkDescriptor
impl Send for ChunkDescriptor
impl Sync for ChunkDescriptor
impl Unpin for ChunkDescriptor
impl UnwindSafe for ChunkDescriptor
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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