pub struct Module {
pub identifier: Identifier,
pub attributes: Vec<WeakPtr<Attribute>>,
pub span: Span,
}Fields§
§identifier: Identifier§attributes: Vec<WeakPtr<Attribute>>§span: SpanImplementations§
Trait Implementations§
Source§impl AsAttributables for Module
impl AsAttributables for Module
fn concrete_attributable(&self) -> Attributables<'_>
Source§impl Attributable for Module
impl Attributable for Module
Source§impl NamedSymbol for Module
impl NamedSymbol for Module
fn identifier(&self) -> &str
fn raw_identifier(&self) -> &Identifier
fn module_scoped_identifier(&self) -> String
fn parser_scoped_identifier(&self) -> String
Source§impl<'a> TryFrom<&'a Node> for &'a Module
impl<'a> TryFrom<&'a Node> for &'a Module
Source§fn try_from(node: &'a Node) -> Result<&'a Module, Self::Error>
fn try_from(node: &'a Node) -> Result<&'a Module, Self::Error>
Attempts to unwrap a node to the specified concrete type.
If the Slice element held by the node is the specified type, this succeeds, and returns the unwrapped element in the requested container. Otherwise this method fails and returns an error message.
Source§type Error = LookupError
type Error = LookupError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Module
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl Unpin for Module
impl !UnwindSafe for Module
Blanket Implementations§
Source§impl<A> AttributeFunctions for Awhere
A: Attributable + ?Sized,
impl<A> AttributeFunctions for Awhere
A: Attributable + ?Sized,
Source§fn has_attribute<T>(&self) -> boolwhere
T: AttributeKind + 'static,
fn has_attribute<T>(&self) -> boolwhere
T: AttributeKind + 'static,
Returns true if this element has an attribute of the specified type and false otherwise.
Source§fn find_attribute<T>(&self) -> Option<&T>where
T: AttributeKind + 'static,
fn find_attribute<T>(&self) -> Option<&T>where
T: AttributeKind + 'static,
Returns the first attribute of the specified type that is applied to this element.
If no attributes of the specified type can be found, this returns
None.Source§fn find_attributes<T>(&self) -> Vec<&T>where
T: AttributeKind + 'static,
fn find_attributes<T>(&self) -> Vec<&T>where
T: AttributeKind + 'static,
Returns all the attributes applied to this element that are of the specified type.
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