pub struct ConstantReference {
pub label: Option<String>,
pub constant: ConstantSpecification,
}
Expand description
reference to a ConstantValue
Fields§
§label: Option<String>
SHORT-LABEL: used to identify the constant in a human readable way. This is used when the constant is part of a record.
constant: ConstantSpecification
Reference to the constant specification
Trait Implementations§
Source§impl Clone for ConstantReference
impl Clone for ConstantReference
Source§fn clone(&self) -> ConstantReference
fn clone(&self) -> ConstantReference
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 ConstantReference
impl Debug for ConstantReference
Source§impl From<ConstantReference> for ValueSpecification
impl From<ConstantReference> for ValueSpecification
Source§fn from(value_spec: ConstantReference) -> Self
fn from(value_spec: ConstantReference) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConstantReference
impl PartialEq for ConstantReference
impl StructuralPartialEq for ConstantReference
Auto Trait Implementations§
impl Freeze for ConstantReference
impl !RefUnwindSafe for ConstantReference
impl Send for ConstantReference
impl Sync for ConstantReference
impl Unpin for ConstantReference
impl !UnwindSafe for ConstantReference
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