Struct syntax::ast::UseTree [−][src]
pub struct UseTree {
pub prefix: Path,
pub kind: UseTreeKind,
pub span: Span,
}A tree of paths sharing common prefixes.
Used in use items both at top-level and inside of braces in import groups.
Fields
prefix: Path
kind: UseTreeKind
span: Span
Methods
impl UseTree[src]
impl UseTreeTrait Implementations
impl Clone for UseTree[src]
impl Clone for UseTreefn clone(&self) -> UseTree[src]
fn clone(&self) -> UseTreeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for UseTree[src]
impl PartialEq for UseTreefn eq(&self, other: &UseTree) -> bool[src]
fn eq(&self, other: &UseTree) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &UseTree) -> bool[src]
fn ne(&self, other: &UseTree) -> boolThis method tests for !=.
impl Eq for UseTree[src]
impl Eq for UseTreeimpl Encodable for UseTree[src]
impl Encodable for UseTreeimpl Decodable for UseTree[src]
impl Decodable for UseTreeimpl Hash for UseTree[src]
impl Hash for UseTreefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for UseTree[src]
impl Debug for UseTree