pub struct DimensionDef { /* private fields */ }Expand description
Corresponds to the grammar rule dimension_def.
Implementations§
Source§impl DimensionDef
impl DimensionDef
pub fn new(name: Identifier) -> Self
pub fn with_body(self, body: DimensionBody) -> Self
Trait Implementations§
Source§impl AnnotationBuilder for DimensionDef
impl AnnotationBuilder for DimensionDef
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 Clone for DimensionDef
impl Clone for DimensionDef
Source§fn clone(&self) -> DimensionDef
fn clone(&self) -> DimensionDef
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 DimensionDef
impl Debug for DimensionDef
Source§impl<'de> Deserialize<'de> for DimensionDef
impl<'de> Deserialize<'de> for DimensionDef
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<&DimensionDef> for Definition
impl From<&DimensionDef> for Definition
Source§fn from(v: &DimensionDef) -> Self
fn from(v: &DimensionDef) -> Self
Converts to this type from the input type.
Source§impl From<DimensionDef> for Definition
impl From<DimensionDef> for Definition
Source§fn from(v: DimensionDef) -> Self
fn from(v: DimensionDef) -> Self
Converts to this type from the input type.
Source§impl HasName for DimensionDef
impl HasName for DimensionDef
Source§fn name(&self) -> &Identifier
fn name(&self) -> &Identifier
Get the name of the enclosing type.
Source§fn set_name(&mut self, name: Identifier)
fn set_name(&mut self, name: Identifier)
Set the name of the enclosing type.
Source§impl HasOptionalBody for DimensionDef
impl HasOptionalBody for DimensionDef
Source§type Body = DimensionBody
type Body = DimensionBody
This type is the particular body for the enclosing type.
fn body(&self) -> Option<&Self::Body>
fn body_mut(&mut self) -> Option<&mut Self::Body>
fn set_body(&mut self, body: Self::Body)
fn unset_body(&mut self)
fn with_body(self, body: Self::Body) -> Selfwhere
Self: Sized,
fn has_body(&self) -> bool
Source§impl HasSourceSpan for DimensionDef
impl HasSourceSpan for DimensionDef
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 DimensionDef
impl MaybeIncomplete for DimensionDef
fn is_incomplete(&self, top: &Module, cache: &impl ModuleStore) -> bool
Source§impl References for DimensionDef
impl References for DimensionDef
fn referenced_annotations<'a>( &'a self, names: &mut BTreeSet<&'a IdentifierReference>, )
fn referenced_types<'a>(&'a self, names: &mut BTreeSet<&'a IdentifierReference>)
Source§impl Serialize for DimensionDef
impl Serialize for DimensionDef
Source§impl Validate for DimensionDef
impl Validate for DimensionDef
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, check_constraints: bool, )
Auto Trait Implementations§
impl Freeze for DimensionDef
impl RefUnwindSafe for DimensionDef
impl Send for DimensionDef
impl Sync for DimensionDef
impl Unpin for DimensionDef
impl UnsafeUnpin for DimensionDef
impl UnwindSafe for DimensionDef
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