#[repr(C)]pub struct StructWithPrimitives {
pub char_field: u8,
pub size_field: usize,
pub uintptr_field: usize,
}Fields§
§char_field: u8§size_field: usize§uintptr_field: usizeTrait Implementations§
Source§impl Clone for StructWithPrimitives
impl Clone for StructWithPrimitives
Source§fn clone(&self) -> StructWithPrimitives
fn clone(&self) -> StructWithPrimitives
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 StructWithPrimitives
impl Debug for StructWithPrimitives
Source§impl PartialEq for StructWithPrimitives
impl PartialEq for StructWithPrimitives
impl Copy for StructWithPrimitives
impl Eq for StructWithPrimitives
impl StructuralPartialEq for StructWithPrimitives
Auto Trait Implementations§
impl Freeze for StructWithPrimitives
impl RefUnwindSafe for StructWithPrimitives
impl Send for StructWithPrimitives
impl Sync for StructWithPrimitives
impl Unpin for StructWithPrimitives
impl UnwindSafe for StructWithPrimitives
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