#[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: usize
Trait Implementations§
source§impl Clone for StructWithPrimitives
impl Clone for StructWithPrimitives
source§fn clone(&self) -> StructWithPrimitives
fn clone(&self) -> StructWithPrimitives
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 StructWithPrimitives
impl Debug for StructWithPrimitives
source§impl PartialEq for StructWithPrimitives
impl PartialEq for StructWithPrimitives
source§fn eq(&self, other: &StructWithPrimitives) -> bool
fn eq(&self, other: &StructWithPrimitives) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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