UnwrapIdent

Trait UnwrapIdent 

Source
pub trait UnwrapIdent {
    // Required method
    fn unwrap_ident(&self) -> Ident;
}
Expand description

Conversion to an Ident.

This is primarily an ergonomic aid, and SHOULD NOT be used on untrusted inputs.

Required Methods§

Source

fn unwrap_ident(&self) -> Ident

§Panics
  • Implementors may decide to panic.

Implementations on Foreign Types§

Source§

impl UnwrapIdent for Cow<'_, str>

Source§

impl UnwrapIdent for str

Source§

impl UnwrapIdent for String

Source§

impl UnwrapIdent for Ident

Source§

impl<T: UnwrapIdent + ?Sized> UnwrapIdent for &T

Source§

impl<T: UnwrapIdent + ?Sized> UnwrapIdent for Box<T>

Source§

impl<T: UnwrapIdent + ?Sized> UnwrapIdent for Rc<T>

Source§

impl<T: UnwrapIdent + ?Sized> UnwrapIdent for Arc<T>

Implementors§