Struct sdml_core::model::AnnotationProperty
source · pub struct AnnotationProperty { /* private fields */ }
Expand description
Corresponds to the grammar rule annotation_property
.
Implementations§
source§impl AnnotationProperty
impl AnnotationProperty
pub fn new(name: IdentifierReference, value: Value) -> Self
pub fn with_ts_span(self, ts_span: Span) -> Self
pub fn has_ts_span(&self) -> bool
pub fn ts_span(&self) -> Option<&Span>
pub fn set_ts_span(&mut self, span: Span)
pub fn unset_ts_span(&mut self)
pub fn name(&self) -> &IdentifierReference
pub fn set_name(&mut self, name: IdentifierReference)
pub fn value(&self) -> &Value
pub fn set_value(&mut self, value: Value)
Trait Implementations§
source§impl Clone for AnnotationProperty
impl Clone for AnnotationProperty
source§fn clone(&self) -> AnnotationProperty
fn clone(&self) -> AnnotationProperty
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 AnnotationProperty
impl Debug for AnnotationProperty
source§impl<'de> Deserialize<'de> for AnnotationProperty
impl<'de> Deserialize<'de> for AnnotationProperty
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<AnnotationProperty> for Annotation
impl From<AnnotationProperty> for Annotation
source§fn from(value: AnnotationProperty) -> Self
fn from(value: AnnotationProperty) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AnnotationProperty
impl Send for AnnotationProperty
impl Sync for AnnotationProperty
impl Unpin for AnnotationProperty
impl UnwindSafe for AnnotationProperty
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