pub struct NamedField {
pub name: &'static str,
pub ty: Type,
}
Expand description
Represents a named struct
field.
Fields§
§name: &'static str
The name of the field.
ty: Type
The type of the field.
Trait Implementations§
Source§impl Clone for NamedField
impl Clone for NamedField
Source§fn clone(&self) -> NamedField
fn clone(&self) -> NamedField
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NamedField
impl Debug for NamedField
Source§impl PartialEq for NamedField
impl PartialEq for NamedField
impl StructuralPartialEq for NamedField
Auto Trait Implementations§
impl Freeze for NamedField
impl RefUnwindSafe for NamedField
impl Send for NamedField
impl Sync for NamedField
impl Unpin for NamedField
impl UnwindSafe for NamedField
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