#[non_exhaustive]pub enum Absence {
ZeroOffset,
ZeroLength {
by: String,
align: Option<u64>,
},
}Expand description
What makes an optional Placed record absent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroOffset
An offset of zero, in the field Segment::Placed::at.
ZeroLength
A length of zero.
Fields
§
align: Option<u64>Padding that is not part of the length: #[align(N)].
The record lies in the stated length rounded up to a multiple of N bytes. It may end
anywhere from the stated length to that bound, since a record that states its own size
can count the padding, as an SDAT block does. Encode writes the record’s length and
then zeros up to the bound.
Trait Implementations§
impl Eq for Absence
impl StructuralPartialEq for Absence
Auto Trait Implementations§
impl Freeze for Absence
impl RefUnwindSafe for Absence
impl Send for Absence
impl Sync for Absence
impl Unpin for Absence
impl UnsafeUnpin for Absence
impl UnwindSafe for Absence
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