#[repr(u8)]
pub enum ExtentInlineRefType {
TreeBlockRef,
SharedBlockRef,
ExtentDataRef,
SharedDataRef,
}
Expand description
The type of ExtentInlineRef
.
Variants
TreeBlockRef
The reference is indirect for a tree block.
offset
contains the object ID of the tree root that allocated the block.
SharedBlockRef
The reference is shared for a tree block.
offset
contains the byte offset of the node one level above in the tree where this block
is located.
ExtentDataRef
The reference is indirect for a data extent.
An ExtentDataRef
is located immediately after the type
field and overlaps the unused
offset
field.
SharedDataRef
The reference is shared for a data extent.
offset
contains the byte offset of the metadata that contains the extent data item that
describes this extent.
Immediately following offset
(and the end of ExtentInlineRef
structure) is a
SharedDataRef
that contains the reference count.
Trait Implementations
sourceimpl Clone for ExtentInlineRefType
impl Clone for ExtentInlineRefType
sourcefn clone(&self) -> ExtentInlineRefType
fn clone(&self) -> ExtentInlineRefType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExtentInlineRefType
impl Debug for ExtentInlineRefType
sourceimpl From<ExtentInlineRefType> for u8
impl From<ExtentInlineRefType> for u8
sourcefn from(enum_value: ExtentInlineRefType) -> Self
fn from(enum_value: ExtentInlineRefType) -> Self
Converts to this type from the input type.
sourceimpl Hash for ExtentInlineRefType
impl Hash for ExtentInlineRefType
sourceimpl IntoEnumIterator for ExtentInlineRefType
impl IntoEnumIterator for ExtentInlineRefType
type Iterator = ExtentInlineRefTypeIter
fn iter() -> ExtentInlineRefTypeIterⓘNotable traits for ExtentInlineRefTypeIterimpl Iterator for ExtentInlineRefTypeIter type Item = ExtentInlineRefType;
sourceimpl PartialEq<ExtentInlineRefType> for ExtentInlineRefType
impl PartialEq<ExtentInlineRefType> for ExtentInlineRefType
sourcefn eq(&self, other: &ExtentInlineRefType) -> bool
fn eq(&self, other: &ExtentInlineRefType) -> bool
sourceimpl TryFrom<u8> for ExtentInlineRefType
impl TryFrom<u8> for ExtentInlineRefType
type Error = TryFromPrimitiveError<ExtentInlineRefType>
type Error = TryFromPrimitiveError<ExtentInlineRefType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ExtentInlineRefType
impl TryFromPrimitive for ExtentInlineRefType
type Primitive = u8
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ExtentInlineRefType
impl StructuralPartialEq for ExtentInlineRefType
Auto Trait Implementations
impl RefUnwindSafe for ExtentInlineRefType
impl Send for ExtentInlineRefType
impl Sync for ExtentInlineRefType
impl Unpin for ExtentInlineRefType
impl UnwindSafe for ExtentInlineRefType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more