Struct irox_types::NamedVariableValue
source · pub struct NamedVariableValue { /* private fields */ }Expand description
An element that has both a Name and a Type
Implementations§
source§impl NamedVariableValue
impl NamedVariableValue
pub fn new(name: String, value: VariableValue) -> NamedVariableValue
sourcepub fn value(&self) -> &VariableValue
pub fn value(&self) -> &VariableValue
Returns the stored value of the field
Trait Implementations§
source§impl Clone for NamedVariableValue
impl Clone for NamedVariableValue
source§fn clone(&self) -> NamedVariableValue
fn clone(&self) -> NamedVariableValue
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 NamedVariableValue
impl Debug for NamedVariableValue
source§impl From<NamedPrimitiveValue> for NamedVariableValue
impl From<NamedPrimitiveValue> for NamedVariableValue
source§fn from(value: NamedPrimitiveValue) -> Self
fn from(value: NamedPrimitiveValue) -> Self
Converts to this type from the input type.
source§impl PartialEq for NamedVariableValue
impl PartialEq for NamedVariableValue
source§fn eq(&self, other: &NamedVariableValue) -> bool
fn eq(&self, other: &NamedVariableValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NamedVariableValue
Auto Trait Implementations§
impl Freeze for NamedVariableValue
impl RefUnwindSafe for NamedVariableValue
impl Send for NamedVariableValue
impl Sync for NamedVariableValue
impl Unpin for NamedVariableValue
impl UnwindSafe for NamedVariableValue
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