pub struct MappingVariable { /* private fields */ }
Implementations§
source§impl MappingVariable
impl MappingVariable
pub const fn new(domain: Identifier, range: Identifier) -> Self
pub const fn domain(&self) -> &Identifier
pub fn set_domain(&mut self, domain: Identifier)
pub const fn range(&self) -> &Identifier
pub fn set_range(&mut self, range: Identifier)
Trait Implementations§
source§impl Clone for MappingVariable
impl Clone for MappingVariable
source§fn clone(&self) -> MappingVariable
fn clone(&self) -> MappingVariable
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 MappingVariable
impl Debug for MappingVariable
source§impl<'de> Deserialize<'de> for MappingVariable
impl<'de> Deserialize<'de> for MappingVariable
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 From<MappingVariable> for Variables
impl From<MappingVariable> for Variables
source§fn from(value: MappingVariable) -> Self
fn from(value: MappingVariable) -> Self
Converts to this type from the input type.
source§impl HasSourceSpan for MappingVariable
impl HasSourceSpan for MappingVariable
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 MappingVariable
impl RefUnwindSafe for MappingVariable
impl Send for MappingVariable
impl Sync for MappingVariable
impl Unpin for MappingVariable
impl UnwindSafe for MappingVariable
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)