[][src]Struct ra_ap_syntax::ast::UseTree

pub struct UseTree { /* fields omitted */ }

Implementations

impl UseTree[src]

pub fn path(&self) -> Option<Path>[src]

pub fn coloncolon_token(&self) -> Option<SyntaxToken>[src]

pub fn star_token(&self) -> Option<SyntaxToken>[src]

pub fn use_tree_list(&self) -> Option<UseTreeList>[src]

pub fn rename(&self) -> Option<Rename>[src]

impl UseTree[src]

#[must_use]pub fn with_path(&self, path: Path) -> UseTree[src]

#[must_use]pub fn with_use_tree_list(&self, use_tree_list: UseTreeList) -> UseTree[src]

#[must_use]pub fn split_prefix(&self, prefix: &Path) -> UseTree[src]

pub fn remove(&self) -> SyntaxRewriter<'static>[src]

Trait Implementations

impl AstNode for UseTree[src]

impl Clone for UseTree[src]

impl Debug for UseTree[src]

impl Display for UseTree[src]

impl Eq for UseTree[src]

impl Hash for UseTree[src]

impl PartialEq<UseTree> for UseTree[src]

impl StructuralEq for UseTree[src]

impl StructuralPartialEq for UseTree[src]

Auto Trait Implementations

impl !RefUnwindSafe for UseTree

impl !Send for UseTree

impl !Sync for UseTree

impl Unpin for UseTree

impl !UnwindSafe for UseTree

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<N> AstNodeEdit for N where
    N: AstNode + Clone
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.