pub struct Offset<'a, P, T> {
pub position: u64,
pub data: &'a T,
pub field_alignment: Option<u64>,
pub padding_byte: u8,
/* private fields */
}
Fields§
§position: u64
The position in the file for the offset field.
data: &'a T
The data pointed to by the offset.
field_alignment: Option<u64>
Alignment override applied at the field level.
padding_byte: u8
The byte used for padding or alignment.
This is usually 0u8
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, P, T> Freeze for Offset<'a, P, T>
impl<'a, P, T> RefUnwindSafe for Offset<'a, P, T>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, P, T> Send for Offset<'a, P, T>
impl<'a, P, T> Sync for Offset<'a, P, T>
impl<'a, P, T> Unpin for Offset<'a, P, T>where
P: Unpin,
impl<'a, P, T> UnwindSafe for Offset<'a, P, T>where
T: RefUnwindSafe,
P: UnwindSafe,
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