pub struct Field {
pub name: &'static str,
pub size: usize,
pub collection_items: Option<usize>,
}
Expand description
A description of a struct or enum field.
Fields§
§name: &'static str
The name of the field being described.
size: usize
The total size of the field.
collection_items: Option<usize>
How many items this collection is holding, if it is one.
Trait Implementations§
source§impl Ord for Field
impl Ord for Field
source§impl PartialEq for Field
impl PartialEq for Field
source§impl PartialOrd for Field
impl PartialOrd for Field
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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