pub enum TypeStructure {
Struct {
fields: &'static [Field],
},
Union {
fields: &'static [Field],
},
Enum {
variants: &'static [Variant],
},
}Expand description
Whether a type is a struct, union or enum, and the fields or variants it holds.
Variants§
Trait Implementations§
Source§impl Clone for TypeStructure
impl Clone for TypeStructure
Source§fn clone(&self) -> TypeStructure
fn clone(&self) -> TypeStructure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeStructure
impl Debug for TypeStructure
Source§impl PartialEq for TypeStructure
impl PartialEq for TypeStructure
Source§fn eq(&self, other: &TypeStructure) -> bool
fn eq(&self, other: &TypeStructure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TypeStructure
impl Eq for TypeStructure
impl StructuralPartialEq for TypeStructure
Auto Trait Implementations§
impl Freeze for TypeStructure
impl RefUnwindSafe for TypeStructure
impl Send for TypeStructure
impl Sync for TypeStructure
impl Unpin for TypeStructure
impl UnsafeUnpin for TypeStructure
impl UnwindSafe for TypeStructure
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