Struct sdml_core::model::MappingValue
source · pub struct MappingValue { /* private fields */ }
Expand description
Corresponds to the grammar rule mapping_value
.
Implementations§
source§impl MappingValue
impl MappingValue
pub fn new(domain: SimpleValue, range: Value) -> Self
pub fn with_ts_span(self, ts_span: Span) -> Self
pub fn has_ts_span(&self) -> bool
pub fn ts_span(&self) -> Option<&Span>
pub fn set_ts_span(&mut self, span: Span)
pub fn unset_ts_span(&mut self)
pub fn domain(&self) -> &SimpleValue
pub fn set_domain(&mut self, domain: SimpleValue)
pub fn range(&self) -> &Value
pub fn set_range(&mut self, range: Value)
Trait Implementations§
source§impl Clone for MappingValue
impl Clone for MappingValue
source§fn clone(&self) -> MappingValue
fn clone(&self) -> MappingValue
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 MappingValue
impl Debug for MappingValue
source§impl<'de> Deserialize<'de> for MappingValue
impl<'de> Deserialize<'de> for MappingValue
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 MappingValue
impl Display for MappingValue
source§impl From<MappingValue> for Value
impl From<MappingValue> for Value
source§fn from(v: MappingValue) -> Self
fn from(v: MappingValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MappingValue
impl Send for MappingValue
impl Sync for MappingValue
impl Unpin for MappingValue
impl UnwindSafe for MappingValue
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