Struct sdml_core::model::values::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 const fn domain(&self) -> &SimpleValue
pub fn set_domain<T>(&mut self, domain: T)where
T: Into<SimpleValue>,
pub const fn range(&self) -> &Value
pub fn set_range<T>(&mut self, range: T)
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.
source§impl HasSourceSpan for MappingValue
impl HasSourceSpan for MappingValue
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 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