Struct irox_types::NamedPrimitiveValue
source · pub struct NamedPrimitiveValue { /* private fields */ }Expand description
A struct to “Name” a primitive with an associated value, like a Field with a value
Implementations§
source§impl NamedPrimitiveValue
impl NamedPrimitiveValue
pub fn new(name: String, value: PrimitiveValue) -> NamedPrimitiveValue
sourcepub fn value(&self) -> &PrimitiveValue
pub fn value(&self) -> &PrimitiveValue
Returns the stored value of the field
Trait Implementations§
source§impl Clone for NamedPrimitiveValue
impl Clone for NamedPrimitiveValue
source§fn clone(&self) -> NamedPrimitiveValue
fn clone(&self) -> NamedPrimitiveValue
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 NamedPrimitiveValue
impl Debug for NamedPrimitiveValue
source§impl PartialEq<NamedPrimitiveValue> for NamedPrimitiveValue
impl PartialEq<NamedPrimitiveValue> for NamedPrimitiveValue
source§fn eq(&self, other: &NamedPrimitiveValue) -> bool
fn eq(&self, other: &NamedPrimitiveValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NamedPrimitiveValue
Auto Trait Implementations§
impl RefUnwindSafe for NamedPrimitiveValue
impl Send for NamedPrimitiveValue
impl Sync for NamedPrimitiveValue
impl Unpin for NamedPrimitiveValue
impl UnwindSafe for NamedPrimitiveValue
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