pub struct Module { /* private fields */ }
Expand description
Corresponds the grammar rule module
.
Implementations§
source§impl Module
impl Module
pub fn empty(name: Identifier) -> Self
pub fn new(name: Identifier, body: ModuleBody) -> Self
pub fn with_ts_span(self, ts_span: Span) -> Self
pub fn with_base(self, base: Url) -> Self
pub fn has_base(&self) -> bool
pub fn base(&self) -> Option<&Url>
pub fn set_base(&mut self, base: Url)
pub fn unset_base(&mut self)
pub fn body(&self) -> &ModuleBody
pub fn set_body(&mut self, body: ModuleBody)
pub fn imported_modules(&self) -> HashSet<&Identifier>
pub fn imported_types(&self) -> HashSet<&QualifiedIdentifier>
pub fn defined_names(&self) -> HashSet<&Identifier>
pub fn referenced_types(&self) -> HashSet<&IdentifierReference>
pub fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Module
impl<'de> Deserialize<'de> for Module
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 ModelElement for Module
impl ModelElement for Module
fn has_ts_span(&self) -> bool
fn ts_span(&self) -> Option<&Span>
fn set_ts_span(&mut self, span: Span)
fn unset_ts_span(&mut self)
fn name(&self) -> &Identifier
fn set_name(&mut self, name: Identifier)
fn is_complete(&self) -> bool
fn referenced_types(&self) -> HashSet<&IdentifierReference>
fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
Auto Trait Implementations§
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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