pub struct StructureDef { /* private fields */ }
Expand description
Corresponds to the grammar rule structure_def
.
Implementations§
source§impl StructureDef
impl StructureDef
pub fn new(name: Identifier) -> Self
Trait Implementations§
source§impl AnnotationBuilder for StructureDef
impl AnnotationBuilder for StructureDef
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 StructureDef
impl Clone for StructureDef
source§fn clone(&self) -> StructureDef
fn clone(&self) -> StructureDef
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 StructureDef
impl Debug for StructureDef
source§impl<'de> Deserialize<'de> for StructureDef
impl<'de> Deserialize<'de> for StructureDef
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<StructureDef> for Definition
impl From<StructureDef> for Definition
source§fn from(v: StructureDef) -> Self
fn from(v: StructureDef) -> Self
Converts to this type from the input type.
source§impl HasName for StructureDef
impl HasName for StructureDef
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 StructureDef
impl HasOptionalBody for StructureDef
source§impl HasSourceSpan for StructureDef
impl HasSourceSpan for StructureDef
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 StructureDef
impl MaybeIncomplete for StructureDef
fn is_incomplete(&self, top: &Module, cache: &impl ModuleStore) -> bool
source§impl References for StructureDef
impl References for StructureDef
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference>, )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
source§impl Serialize for StructureDef
impl Serialize for StructureDef
source§impl Validate for StructureDef
impl Validate for StructureDef
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, check_constraints: bool, )
Auto Trait Implementations§
impl Freeze for StructureDef
impl RefUnwindSafe for StructureDef
impl Send for StructureDef
impl Sync for StructureDef
impl Unpin for StructureDef
impl UnwindSafe for StructureDef
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)