#[repr(C)]pub struct StructType {
pub repr: Repr,
pub kind: StructKind,
pub fields: &'static [Field],
}Expand description
Common fields for struct-like types
Fields§
§repr: ReprRepresentation of the struct’s data
kind: StructKindthe kind of struct (e.g. struct, tuple struct, tuple)
fields: &'static [Field]all fields, in declaration order (not necessarily in memory order)
Implementations§
Source§impl StructType
impl StructType
Trait Implementations§
Source§impl Clone for StructType
impl Clone for StructType
Source§fn clone(&self) -> StructType
fn clone(&self) -> StructType
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 StructType
impl Debug for StructType
Source§impl Facet<'_> for StructType
impl Facet<'_> for StructType
impl Copy for StructType
Auto Trait Implementations§
impl Freeze for StructType
impl RefUnwindSafe for StructType
impl Send for StructType
impl Sync for StructType
impl Unpin for StructType
impl UnwindSafe for StructType
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