Struct sdml_core::model::ByValueMemberDef
source · pub struct ByValueMemberDef { /* private fields */ }
Expand description
Corresponds to the definition component within grammar rule by_value_member
.
Implementations§
source§impl ByValueMemberDef
impl ByValueMemberDef
pub fn new(target_type: TypeReference) -> Self
pub fn new_named(target_type: IdentifierReference) -> Self
pub fn new_unknown() -> Self
pub fn target_cardinality(&self) -> &Cardinality
pub fn set_target_cardinality(&mut self, target_cardinality: Cardinality)
pub fn target_type(&self) -> &TypeReference
pub fn set_target_type(&mut self, target_type: TypeReference)
pub fn body(&self) -> Option<&AnnotationOnlyBody>
pub fn set_body(&mut self, body: AnnotationOnlyBody)
pub fn unset_body(&mut self)
pub fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
pub fn is_complete(&self) -> bool
Trait Implementations§
source§impl Clone for ByValueMemberDef
impl Clone for ByValueMemberDef
source§fn clone(&self) -> ByValueMemberDef
fn clone(&self) -> ByValueMemberDef
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 ByValueMemberDef
impl Debug for ByValueMemberDef
source§impl<'de> Deserialize<'de> for ByValueMemberDef
impl<'de> Deserialize<'de> for ByValueMemberDef
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<ByValueMemberDef> for ByValueMemberInner
impl From<ByValueMemberDef> for ByValueMemberInner
source§fn from(value: ByValueMemberDef) -> Self
fn from(value: ByValueMemberDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ByValueMemberDef
impl Send for ByValueMemberDef
impl Sync for ByValueMemberDef
impl Unpin for ByValueMemberDef
impl UnwindSafe for ByValueMemberDef
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