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 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 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
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