pub struct MemberDef { /* private fields */ }
Expand description
Corresponds to the definition component within grammar rule by_reference_member
.
Implementations§
source§impl MemberDef
impl MemberDef
pub fn new<T>(target_type: T) -> Selfwhere
T: Into<TypeReference>,
pub const fn new_unknown() -> Self
pub const fn has_inverse_name(&self) -> bool
pub const fn inverse_name(&self) -> Option<&Identifier>
pub fn set_inverse_name(&mut self, inverse_name: Identifier)
pub fn unset_inverse_name(&mut self)
Trait Implementations§
source§impl AnnotationBuilder for MemberDef
impl AnnotationBuilder for MemberDef
fn with_predicate<I, V>(self, predicate: I, value: V) -> Self
fn with_type<I>(self, name: I) -> Self
fn with_super_class<I>(self, name: I) -> Self
fn with_equivalent_class<I>(self, name: I) -> Self
fn with_super_property<I>(self, name: I) -> Self
fn with_domain<I>(self, name: I) -> Self
fn with_comment<S>(self, comment: S) -> Self
fn with_label<S>(self, label: S) -> Self
fn with_see_also_str(self, resource: &str) -> Selfwhere
Self: Sized,
fn with_see_also(self, resource: Url) -> Selfwhere
Self: Sized,
fn with_see_also_ref<I>(self, resource: I) -> Self
fn with_is_defined_by(self, resource: Url) -> Selfwhere
Self: Sized,
fn with_is_defined_by_str(self, resource: &str) -> Selfwhere
Self: Sized,
fn with_is_defined_by_ref<I>(self, resource: I) -> Self
fn with_range<I>(self, name: I) -> Self
source§impl<'de> Deserialize<'de> for MemberDef
impl<'de> Deserialize<'de> for MemberDef
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<MemberDef> for PropertyRoleDef
impl From<MemberDef> for PropertyRoleDef
source§impl HasCardinality for MemberDef
impl HasCardinality for MemberDef
fn target_cardinality(&self) -> &Cardinality
fn set_target_cardinality(&mut self, target_cardinality: Cardinality)
source§impl HasSourceSpan for MemberDef
impl HasSourceSpan for MemberDef
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
source§impl HasType for MemberDef
impl HasType for MemberDef
fn target_type(&self) -> &TypeReference
fn set_target_type(&mut self, target_type: TypeReference)
fn is_unknown_type(&self) -> bool
fn is_named_type(&self) -> bool
fn is_mapping_type(&self) -> bool
source§impl References for MemberDef
impl References for MemberDef
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference> )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
source§impl Validate for MemberDef
impl Validate for MemberDef
fn is_complete(&self, top: &Module, cache: &ModuleCache) -> Result<bool, Error>
fn is_valid( &self, check_constraints: bool, top: &Module, cache: &ModuleCache ) -> Result<bool, Error>
fn validate( &self, check_constraints: bool, top: &Module, cache: &ModuleCache, errors: &mut Vec<Error> ) -> Result<(), Error>
Auto Trait Implementations§
impl RefUnwindSafe for MemberDef
impl Send for MemberDef
impl Sync for MemberDef
impl Unpin for MemberDef
impl UnwindSafe for MemberDef
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