pub enum Import {
Module(Identifier),
Member(QualifiedIdentifier),
}
Expand description
Corresponds the grammar rule import
.
Variants§
Module(Identifier)
Corresponds to the grammar rule module_import
.
Member(QualifiedIdentifier)
Corresponds to the grammar rule member_import
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Import
impl<'de> Deserialize<'de> for Import
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<Identifier> for Import
impl From<Identifier> for Import
source§fn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
source§impl From<QualifiedIdentifier> for Import
impl From<QualifiedIdentifier> for Import
source§fn from(v: QualifiedIdentifier) -> Self
fn from(v: QualifiedIdentifier) -> Self
Converts to this type from the input type.
source§impl FromIterator<Import> for ImportStatement
impl FromIterator<Import> for ImportStatement
source§impl HasSourceSpan for Import
impl HasSourceSpan for Import
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 PartialEq for Import
impl PartialEq for Import
impl Eq for Import
impl StructuralEq for Import
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnwindSafe for Import
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