pub struct ValueConstructor { /* private fields */ }
Expand description
Corresponds to the grammar rule value_constructor
.
Implementations§
Source§impl ValueConstructor
impl ValueConstructor
pub const fn new(type_name: IdentifierReference, value: SimpleValue) -> Self
pub const fn type_name(&self) -> &IdentifierReference
pub fn set_type_name(&mut self, type_name: IdentifierReference)
pub const fn value(&self) -> &SimpleValue
pub fn set_value(&mut self, value: SimpleValue)
Trait Implementations§
Source§impl Clone for ValueConstructor
impl Clone for ValueConstructor
Source§fn clone(&self) -> ValueConstructor
fn clone(&self) -> ValueConstructor
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 ValueConstructor
impl Debug for ValueConstructor
Source§impl<'de> Deserialize<'de> for ValueConstructor
impl<'de> Deserialize<'de> for ValueConstructor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ValueConstructor
impl Display for ValueConstructor
Source§impl From<&ValueConstructor> for SequenceMember
impl From<&ValueConstructor> for SequenceMember
Source§fn from(v: &ValueConstructor) -> Self
fn from(v: &ValueConstructor) -> Self
Converts to this type from the input type.
Source§impl From<&ValueConstructor> for Value
impl From<&ValueConstructor> for Value
Source§fn from(v: &ValueConstructor) -> Self
fn from(v: &ValueConstructor) -> Self
Converts to this type from the input type.
Source§impl From<ValueConstructor> for SequenceMember
impl From<ValueConstructor> for SequenceMember
Source§fn from(v: ValueConstructor) -> Self
fn from(v: ValueConstructor) -> Self
Converts to this type from the input type.
Source§impl From<ValueConstructor> for Value
impl From<ValueConstructor> for Value
Source§fn from(v: ValueConstructor) -> Self
fn from(v: ValueConstructor) -> Self
Converts to this type from the input type.
Source§impl HasSourceSpan for ValueConstructor
impl HasSourceSpan for ValueConstructor
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
Auto Trait Implementations§
impl Freeze for ValueConstructor
impl RefUnwindSafe for ValueConstructor
impl Send for ValueConstructor
impl Sync for ValueConstructor
impl Unpin for ValueConstructor
impl UnwindSafe for ValueConstructor
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