Enum ra_ap_syntax::ast::NameLike[][src]

pub enum NameLike {
    NameRef(NameRef),
    Name(Name),
    Lifetime(Lifetime),
}

Variants

NameRef(NameRef)
Name(Name)
Lifetime(Lifetime)

Implementations

impl NameLike[src]

pub fn as_name_ref(&self) -> Option<&NameRef>[src]

Trait Implementations

impl AstNode for NameLike[src]

impl Clone for NameLike[src]

impl Debug for NameLike[src]

impl From<Lifetime> for NameLike[src]

impl From<Name> for NameLike[src]

impl From<NameRef> for NameLike[src]

Auto Trait Implementations

impl !RefUnwindSafe for NameLike

impl !Send for NameLike

impl !Sync for NameLike

impl Unpin for NameLike

impl !UnwindSafe for NameLike

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, 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.