pub struct StructShape {
pub name: &'static str,
pub doc: &'static str,
pub fields: Vec<Field>,
}Expand description
A struct’s shape: its fields.
Fields§
§name: &'static strIts name in the docs.
doc: &'static strIts docs.
fields: Vec<Field>Its fields, in order.
Trait Implementations§
Source§impl Clone for StructShape
impl Clone for StructShape
Source§fn clone(&self) -> StructShape
fn clone(&self) -> StructShape
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 moreAuto Trait Implementations§
impl Freeze for StructShape
impl RefUnwindSafe for StructShape
impl Send for StructShape
impl Sync for StructShape
impl Unpin for StructShape
impl UnsafeUnpin for StructShape
impl UnwindSafe for StructShape
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