#[repr(C, packed(1))]pub struct AsptStructHeader {
pub type_: AsptStructType,
pub len: u16,
}Fields§
§type_: AsptStructType§len: u16Implementations§
Source§impl AsptStructHeader
impl AsptStructHeader
pub fn new<S: AsptStruct>() -> AsptStructHeader
Trait Implementations§
Source§impl Clone for AsptStructHeader
impl Clone for AsptStructHeader
Source§fn clone(&self) -> AsptStructHeader
fn clone(&self) -> AsptStructHeader
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 AsptStructHeader
impl Debug for AsptStructHeader
Source§impl IntoBytes for AsptStructHeaderwhere
AsptStructType: IntoBytes,
u16: IntoBytes,
impl IntoBytes for AsptStructHeaderwhere
AsptStructType: IntoBytes,
u16: IntoBytes,
Source§impl KnownLayout for AsptStructHeaderwhere
u16: KnownLayout,
impl KnownLayout for AsptStructHeaderwhere
u16: KnownLayout,
Source§type PointerMetadata = <u16 as KnownLayout>::PointerMetadata
type PointerMetadata = <u16 as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Computes the size of an object of type
Self with the given pointer
metadata. Read moreimpl Copy for AsptStructHeader
impl Immutable for AsptStructHeaderwhere
AsptStructType: Immutable,
u16: Immutable,
Auto Trait Implementations§
impl Freeze for AsptStructHeader
impl RefUnwindSafe for AsptStructHeader
impl Send for AsptStructHeader
impl Sync for AsptStructHeader
impl Unpin for AsptStructHeader
impl UnsafeUnpin for AsptStructHeader
impl UnwindSafe for AsptStructHeader
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