#[repr(C, packed(1))]pub struct AsptStructHeader {
pub type_: AsptStructType,
pub len: u16,
}
Fields§
§type_: AsptStructType
§len: u16
Implementations§
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 copy 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 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 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