pub struct RdfDef { /* private fields */ }Expand description
Corresponds to the grammar rule rdf_class_def and rdf_property_def.
Implementations§
Source§impl RdfDef
impl RdfDef
pub fn new(name: Identifier) -> Self
pub fn class(name: Identifier) -> Self
pub fn is_class(&self) -> bool
pub fn datatype(name: Identifier) -> Self
pub fn is_datatype(&self) -> bool
pub fn property(name: Identifier) -> Self
pub fn is_property(&self) -> bool
pub fn individual(name: Identifier) -> Self
Trait Implementations§
Source§impl AnnotationBuilder for RdfDef
impl AnnotationBuilder for RdfDef
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 RdfDef
impl<'de> Deserialize<'de> for RdfDef
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<&RdfDef> for Definition
impl From<&RdfDef> for Definition
Source§impl From<RdfDef> for Definition
impl From<RdfDef> for Definition
Source§impl HasBody for RdfDef
impl HasBody for RdfDef
Source§impl HasName for RdfDef
impl HasName for RdfDef
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 HasSourceSpan for RdfDef
impl HasSourceSpan for RdfDef
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 RdfDef
impl MaybeIncomplete for RdfDef
fn is_incomplete(&self, _: &Module, _: &impl ModuleStore) -> bool
Source§impl References for RdfDef
impl References for RdfDef
fn referenced_annotations<'a>( &'a self, names: &mut BTreeSet<&'a IdentifierReference>, )
fn referenced_types<'a>(&'a self, names: &mut BTreeSet<&'a IdentifierReference>)
Auto Trait Implementations§
impl Freeze for RdfDef
impl RefUnwindSafe for RdfDef
impl Send for RdfDef
impl Sync for RdfDef
impl Unpin for RdfDef
impl UnsafeUnpin for RdfDef
impl UnwindSafe for RdfDef
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