[][src]Struct ra_ap_hir_def::path::Path

pub struct Path { /* fields omitted */ }

Implementations

impl Path[src]

pub fn from_src(path: Path, hygiene: &Hygiene) -> Option<Path>[src]

Converts an ast::Path to Path. Works with use trees. It correctly handles $crate based path from macro call.

pub fn kind(&self) -> &PathKind[src]

pub fn type_anchor(&self) -> Option<&TypeRef>[src]

pub fn segments(&self) -> PathSegments<'_>[src]

pub fn mod_path(&self) -> &ModPath[src]

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

Trait Implementations

impl Clone for Path[src]

impl Debug for Path[src]

impl Eq for Path[src]

impl From<Name> for Path[src]

impl Hash for Path[src]

impl PartialEq<Path> for Path[src]

impl StructuralEq for Path[src]

impl StructuralPartialEq for Path[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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, 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.