pub struct SourceEntity { /* private fields */ }Expand description
Corresponds to the grammar rule source_entity.
Implementations§
Source§impl SourceEntity
impl SourceEntity
pub fn new<T>(target_entity: T) -> Selfwhere
T: Into<IdentifierReference>,
pub fn with_members<I>(self, members: I) -> Selfwhere
I: IntoIterator<Item = Identifier>,
pub const fn target_entity(&self) -> &IdentifierReference
pub fn set_target_entity<T>(&mut self, target_entity: T)where
T: Into<IdentifierReference>,
pub fn has_members(&self) -> bool
pub fn member_count(&self) -> usize
pub fn contains_member(&self, name: &Identifier) -> bool
pub fn members(&self) -> impl Iterator<Item = &Identifier>
pub fn members_mut(&mut self) -> impl Iterator<Item = &mut Identifier>
pub fn add_to_members<I>(&mut self, value: I)where
I: Into<Identifier>,
pub fn extend_members<I>(&mut self, extension: I)where
I: IntoIterator<Item = Identifier>,
Trait Implementations§
Source§impl Clone for SourceEntity
impl Clone for SourceEntity
Source§fn clone(&self) -> SourceEntity
fn clone(&self) -> SourceEntity
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 SourceEntity
impl Debug for SourceEntity
Source§impl<'de> Deserialize<'de> for SourceEntity
impl<'de> Deserialize<'de> for SourceEntity
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<&IdentifierReference> for SourceEntity
impl From<&IdentifierReference> for SourceEntity
Source§fn from(value: &IdentifierReference) -> Self
fn from(value: &IdentifierReference) -> Self
Converts to this type from the input type.
Source§impl From<&SourceEntity> for DimensionIdentity
impl From<&SourceEntity> for DimensionIdentity
Source§fn from(value: &SourceEntity) -> Self
fn from(value: &SourceEntity) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierReference> for SourceEntity
impl From<IdentifierReference> for SourceEntity
Source§fn from(value: IdentifierReference) -> Self
fn from(value: IdentifierReference) -> Self
Converts to this type from the input type.
Source§impl From<SourceEntity> for DimensionIdentity
impl From<SourceEntity> for DimensionIdentity
Source§fn from(value: SourceEntity) -> Self
fn from(value: SourceEntity) -> Self
Converts to this type from the input type.
Source§impl HasSourceSpan for SourceEntity
impl HasSourceSpan for SourceEntity
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 SourceEntity
impl References for SourceEntity
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 SourceEntity
impl Serialize for SourceEntity
Source§impl Validate for SourceEntity
impl Validate for SourceEntity
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, _check_constraints: bool, )
Auto Trait Implementations§
impl Freeze for SourceEntity
impl RefUnwindSafe for SourceEntity
impl Send for SourceEntity
impl Sync for SourceEntity
impl Unpin for SourceEntity
impl UnsafeUnpin for SourceEntity
impl UnwindSafe for SourceEntity
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