Enum koto_parser::ImportItemNode [−][src]
pub enum ImportItemNode {
Id(ConstantIndex),
Str(AstString),
}
Expand description
A node in an import item, see Node::Import
Variants
Id(ConstantIndex)
Tuple Fields
An identifier node
e.g. import foo.bar ^ Id(bar) ^ Id(foo)
Str(AstString)
Tuple Fields
0: AstString
A string node
e.g. import “foo/bar” ^ Str(“foo/bar”)
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ImportItemNode
impl Send for ImportItemNode
impl Sync for ImportItemNode
impl Unpin for ImportItemNode
impl UnwindSafe for ImportItemNode
Blanket Implementations
Mutably borrows from an owned value. Read more