pub struct Offset16(/* private fields */);
Expand description
A16-bit offset to a table.
Specific offset fields may or may not permit NULL values; however we
assume that errors are possible, and expect the caller to handle
the None
case.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Offset16
impl<'de> Deserialize<'de> for Offset16
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Offset16
impl Ord for Offset16
Source§impl PartialOrd for Offset16
impl PartialOrd for Offset16
impl AnyBitPattern for Offset16
impl Copy for Offset16
impl Eq for Offset16
impl StructuralPartialEq for Offset16
Auto Trait Implementations§
impl Freeze for Offset16
impl RefUnwindSafe for Offset16
impl Send for Offset16
impl Sync for Offset16
impl Unpin for Offset16
impl UnwindSafe for Offset16
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
Source§const RAW_BYTE_LEN: usize = const RAW_BYTE_LEN: usize = std::mem::size_of::<T::Raw>();
const RAW_BYTE_LEN: usize = const RAW_BYTE_LEN: usize = std::mem::size_of::<T::Raw>();
The raw size of this type, in bytes. Read more