Struct sdml_core::model::IdentityMemberDef
source · pub struct IdentityMemberDef { /* private fields */ }
Expand description
Corresponds to the definition component within grammar rule identity_member
.
Implementations§
source§impl IdentityMemberDef
impl IdentityMemberDef
pub fn new(target_type: TypeReference) -> Self
pub fn new_named(target_type: IdentifierReference) -> Self
pub fn new_unknown() -> Self
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 IdentityMemberDef
impl Clone for IdentityMemberDef
source§fn clone(&self) -> IdentityMemberDef
fn clone(&self) -> IdentityMemberDef
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 IdentityMemberDef
impl Debug for IdentityMemberDef
source§impl<'de> Deserialize<'de> for IdentityMemberDef
impl<'de> Deserialize<'de> for IdentityMemberDef
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<IdentityMemberDef> for IdentityMemberInner
impl From<IdentityMemberDef> for IdentityMemberInner
source§fn from(value: IdentityMemberDef) -> Self
fn from(value: IdentityMemberDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IdentityMemberDef
impl Send for IdentityMemberDef
impl Sync for IdentityMemberDef
impl Unpin for IdentityMemberDef
impl UnwindSafe for IdentityMemberDef
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