pub struct DimensionParent { /* private fields */ }Expand description
Corresponds to the grammar rule dimension_parent.
Implementations§
Source§impl DimensionParent
impl DimensionParent
pub fn new<I>(name: Identifier, target_entity: I) -> Selfwhere
I: Into<IdentifierReference>,
pub fn with_body(self, body: AnnotationOnlyBody) -> Self
pub const fn target_entity(&self) -> &IdentifierReference
pub fn set_target_entity<T>(&mut self, target_entity: T)where
T: Into<IdentifierReference>,
Trait Implementations§
Source§impl Clone for DimensionParent
impl Clone for DimensionParent
Source§fn clone(&self) -> DimensionParent
fn clone(&self) -> DimensionParent
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 DimensionParent
impl Debug for DimensionParent
Source§impl<'de> Deserialize<'de> for DimensionParent
impl<'de> Deserialize<'de> for DimensionParent
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 HasName for DimensionParent
impl HasName for DimensionParent
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 DimensionParent
impl HasOptionalBody for DimensionParent
Source§type Body = AnnotationOnlyBody
type Body = AnnotationOnlyBody
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 DimensionParent
impl HasSourceSpan for DimensionParent
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 DimensionParent
impl References for DimensionParent
fn referenced_types<'a>(&'a self, names: &mut BTreeSet<&'a IdentifierReference>)
fn referenced_annotations<'a>( &'a self, names: &mut BTreeSet<&'a IdentifierReference>, )
Source§impl Serialize for DimensionParent
impl Serialize for DimensionParent
Source§impl Validate for DimensionParent
impl Validate for DimensionParent
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, _: bool, )
Auto Trait Implementations§
impl Freeze for DimensionParent
impl RefUnwindSafe for DimensionParent
impl Send for DimensionParent
impl Sync for DimensionParent
impl Unpin for DimensionParent
impl UnsafeUnpin for DimensionParent
impl UnwindSafe for DimensionParent
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