Struct irox_types::NamedPrimitive
source · 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 copy 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 PartialEq for NamedPrimitive
impl PartialEq for NamedPrimitive
source§fn eq(&self, other: &NamedPrimitive) -> bool
fn eq(&self, other: &NamedPrimitive) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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