Struct koto_parser::ImportItem
source · pub struct ImportItem {
pub item: IdOrString,
pub name: Option<ConstantIndex>,
}
Expand description
A node in an import item, see Node::Import
Fields§
§item: IdOrString
The imported item
name: Option<ConstantIndex>
An optional ‘as’ name for the imported item
Trait Implementations§
source§impl Clone for ImportItem
impl Clone for ImportItem
source§fn clone(&self) -> ImportItem
fn clone(&self) -> ImportItem
Returns a copy of the value. Read more
1.0.0 · 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 ImportItem
impl Debug for ImportItem
source§impl PartialEq for ImportItem
impl PartialEq for ImportItem
source§fn eq(&self, other: &ImportItem) -> bool
fn eq(&self, other: &ImportItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImportItem
impl StructuralPartialEq for ImportItem
Auto Trait Implementations§
impl Freeze for ImportItem
impl RefUnwindSafe for ImportItem
impl Send for ImportItem
impl Sync for ImportItem
impl Unpin for ImportItem
impl UnwindSafe for ImportItem
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