pub struct DimensionBody { /* private fields */ }Expand description
Corresponds to the grammar rule dimension_body.
Implementations§
Source§impl DimensionBody
impl DimensionBody
pub fn new<E>(entity: E) -> Selfwhere
E: Into<DimensionIdentity>,
pub fn with_members<I>(self, members: I) -> Selfwhere
I: IntoIterator<Item = Member>,
pub fn with_parents<I>(self, parents: I) -> Selfwhere
I: IntoIterator<Item = DimensionParent>,
pub const fn identity(&self) -> &DimensionIdentity
pub fn set_identity<T>(&mut self, identity: T)where
T: Into<DimensionIdentity>,
pub fn has_members(&self) -> bool
pub fn member_count(&self) -> usize
pub fn contains_member(&self, name: &Identifier) -> bool
pub fn member(&self, name: &Identifier) -> Option<&Member>
pub fn member_mut(&mut self, name: &Identifier) -> Option<&mut Member>
pub fn members(&self) -> impl Iterator<Item = &Member>
pub fn members_mut(&mut self) -> impl Iterator<Item = &mut Member>
pub fn member_names(&self) -> impl Iterator<Item = &Identifier>
pub fn add_to_members(&mut self, value: Member) -> Option<Member>
pub fn extend_member<I>(&mut self, extension: I)where
I: IntoIterator<Item = Member>,
pub fn has_parents(&self) -> bool
pub fn parent_count(&self) -> usize
pub fn contains_parent(&self, name: &Identifier) -> bool
pub fn parent(&self, name: &Identifier) -> Option<&DimensionParent>
pub fn parent_mut(&mut self, name: &Identifier) -> Option<&mut DimensionParent>
pub fn parents(&self) -> impl Iterator<Item = &DimensionParent>
pub fn parents_mut(&mut self) -> impl Iterator<Item = &mut DimensionParent>
pub fn parent_names(&self) -> impl Iterator<Item = &Identifier>
pub fn add_to_parents( &mut self, value: DimensionParent, ) -> Option<DimensionParent>
pub fn extend_parents<I>(&mut self, extension: I)where
I: IntoIterator<Item = DimensionParent>,
Trait Implementations§
Source§impl Clone for DimensionBody
impl Clone for DimensionBody
Source§fn clone(&self) -> DimensionBody
fn clone(&self) -> DimensionBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DimensionBody
impl Debug for DimensionBody
Source§impl<'de> Deserialize<'de> for DimensionBody
impl<'de> Deserialize<'de> for DimensionBody
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 HasAnnotations for DimensionBody
impl HasAnnotations for DimensionBody
fn has_annotations(&self) -> bool
fn annotation_count(&self) -> usize
fn annotations(&self) -> impl Iterator<Item = &Annotation>
fn annotations_mut(&mut self) -> impl Iterator<Item = &mut Annotation>
fn add_to_annotations<I>(&mut self, value: I)where
I: Into<Annotation>,
fn extend_annotations<I>(&mut self, extension: I)where
I: IntoIterator<Item = Annotation>,
fn with_annotations<I>(self, annotations: I) -> Self
fn has_annotation_properties(&self) -> bool
fn annotation_properties(&self) -> impl Iterator<Item = &AnnotationProperty>
fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool
fn rdf_types(&self) -> impl Iterator<Item = &IdentifierReference>
fn preferred_label(&self) -> impl Iterator<Item = &LanguageString>
fn alternate_labels(&self) -> impl Iterator<Item = &LanguageString>
fn descriptions(&self) -> impl Iterator<Item = &LanguageString>
fn skos_definitions(&self) -> impl Iterator<Item = &LanguageString>
fn has_constraints(&self) -> bool
fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint>
Source§impl HasMultiMembers for DimensionBody
impl HasMultiMembers for DimensionBody
fn has_any_members(&self) -> bool
fn contains_any_member(&self, name: &Identifier) -> bool
fn all_member_count(&self) -> usize
fn all_member_names(&self) -> impl Iterator<Item = &Identifier>
Source§impl HasSourceSpan for DimensionBody
impl HasSourceSpan for DimensionBody
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 MaybeIncomplete for DimensionBody
impl MaybeIncomplete for DimensionBody
fn is_incomplete(&self, top: &Module, cache: &impl ModuleStore) -> bool
Source§impl References for DimensionBody
impl References for DimensionBody
fn referenced_types<'a>(&'a self, names: &mut BTreeSet<&'a IdentifierReference>)
fn referenced_annotations<'a>( &'a self, names: &mut BTreeSet<&'a IdentifierReference>, )
Source§impl Serialize for DimensionBody
impl Serialize for DimensionBody
Source§impl Validate for DimensionBody
impl Validate for DimensionBody
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, check_constraints: bool, )
Auto Trait Implementations§
impl Freeze for DimensionBody
impl RefUnwindSafe for DimensionBody
impl Send for DimensionBody
impl Sync for DimensionBody
impl Unpin for DimensionBody
impl UnsafeUnpin for DimensionBody
impl UnwindSafe for DimensionBody
Blanket Implementations§
Source§impl<A> AnnotationBuilder for Awhere
A: HasAnnotations,
impl<A> AnnotationBuilder for Awhere
A: HasAnnotations,
fn with_predicate<I, V>(self, predicate: I, value: V) -> A
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<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