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 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 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 SequenceMember
impl From<&MappingValue> for SequenceMember
Source§fn from(v: &MappingValue) -> Self
fn from(v: &MappingValue) -> Self
Converts to this type from the input type.
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 From<MappingValue> for SequenceMember
impl From<MappingValue> for SequenceMember
Source§fn from(v: MappingValue) -> Self
fn from(v: MappingValue) -> Self
Converts to this type from the input type.
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 Freeze for MappingValue
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