Struct sdml_core::model::definitions::PropertyDef
source · pub struct PropertyDef { /* private fields */ }
Expand description
Corresponds to the grammar rule property_def
.
Implementations§
source§impl PropertyDef
impl PropertyDef
pub fn new(name: Identifier) -> Self
Trait Implementations§
source§impl Clone for PropertyDef
impl Clone for PropertyDef
source§fn clone(&self) -> PropertyDef
fn clone(&self) -> PropertyDef
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 PropertyDef
impl Debug for PropertyDef
source§impl<'de> Deserialize<'de> for PropertyDef
impl<'de> Deserialize<'de> for PropertyDef
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<PropertyDef> for Definition
impl From<PropertyDef> for Definition
source§fn from(v: PropertyDef) -> Self
fn from(v: PropertyDef) -> Self
Converts to this type from the input type.
source§impl HasName for PropertyDef
impl HasName for PropertyDef
fn name(&self) -> &Identifier
fn set_name(&mut self, name: Identifier)
source§impl HasOptionalBody<PropertyBody> for PropertyDef
impl HasOptionalBody<PropertyBody> for PropertyDef
source§impl HasSourceSpan for PropertyDef
impl HasSourceSpan for PropertyDef
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 References for PropertyDef
impl References for PropertyDef
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 PropertyDef
impl Serialize for PropertyDef
source§impl Validate for PropertyDef
impl Validate for PropertyDef
Auto Trait Implementations§
impl RefUnwindSafe for PropertyDef
impl Send for PropertyDef
impl Sync for PropertyDef
impl Unpin for PropertyDef
impl UnwindSafe for PropertyDef
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