pub struct NamedPrimitive { /* private fields */ }Expand description
A struct to “Name” a primitive - like a Field with an associated type
Implementations§
Source§impl NamedPrimitive
impl NamedPrimitive
pub fn new(name: String, primitive: Primitives) -> NamedPrimitive
Sourcepub fn primitive(&self) -> Primitives
pub fn primitive(&self) -> Primitives
Returns the type of the field
Trait Implementations§
Source§impl Clone for NamedPrimitive
impl Clone for NamedPrimitive
Source§fn clone(&self) -> NamedPrimitive
fn clone(&self) -> NamedPrimitive
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 NamedPrimitive
impl Debug for NamedPrimitive
Source§impl Hash for NamedPrimitive
impl Hash for NamedPrimitive
Source§impl Ord for NamedPrimitive
impl Ord for NamedPrimitive
Source§impl PartialEq for NamedPrimitive
impl PartialEq for NamedPrimitive
Source§impl PartialOrd for NamedPrimitive
impl PartialOrd for NamedPrimitive
impl Eq for NamedPrimitive
impl StructuralPartialEq for NamedPrimitive
Auto Trait Implementations§
impl Freeze for NamedPrimitive
impl RefUnwindSafe for NamedPrimitive
impl Send for NamedPrimitive
impl Sync for NamedPrimitive
impl Unpin for NamedPrimitive
impl UnwindSafe for NamedPrimitive
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