pub enum PureUseTree {
Path {
path: String,
tree: Box<PureUseTree>,
},
Name(String),
Rename {
name: String,
rename: String,
},
Glob,
Group(Vec<PureUseTree>),
}Expand description
A use tree.
Variants§
Path
Simple path: use std::io;
Fields
§
tree: Box<PureUseTree>Continuation of the use tree after this segment.
Name(String)
Name: use std::io; (the io part)
Rename
Rename: use std::io as stdio;
Glob
Glob: use std::io::*;
Group(Vec<PureUseTree>)
Group: use std::{io, fs};
Trait Implementations§
Source§impl Clone for PureUseTree
impl Clone for PureUseTree
Source§fn clone(&self) -> PureUseTree
fn clone(&self) -> PureUseTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PureUseTree
impl Debug for PureUseTree
Source§impl PartialEq for PureUseTree
impl PartialEq for PureUseTree
Source§fn eq(&self, other: &PureUseTree) -> bool
fn eq(&self, other: &PureUseTree) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSyn for PureUseTree
impl ToSyn for PureUseTree
impl Eq for PureUseTree
impl StructuralPartialEq for PureUseTree
Auto Trait Implementations§
impl Freeze for PureUseTree
impl RefUnwindSafe for PureUseTree
impl Send for PureUseTree
impl Sync for PureUseTree
impl Unpin for PureUseTree
impl UnsafeUnpin for PureUseTree
impl UnwindSafe for PureUseTree
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