Enum UseTree
enum UseTree
A suffix of an import tree in a use item: Type as Renamed or *.
Syntax tree enum
This type is a syntax tree enum.
Variants
-
Path(UsePath) A path prefix of imports in a
useitem:std::....-
Name(UseName) An identifier imported by a
useitem:HashMap.-
Rename(UseRename) An renamed identifier imported by a
useitem:HashMap as Map.-
Glob(UseGlob) A glob import in a
useitem:*.-
Group(UseGroup) A braced group of imports in a
useitem:{A, B, C}.
Implementations
impl Clone for UseTree
fn clone(self: &Self) -> Self
impl Debug for UseTree
fn fmt(self: &Self, formatter: &mut Formatter<'_>) -> Result
impl Eq for UseTree
impl Freeze for UseTree
impl From for UseTree
fn from(e: UseGroup) -> UseTree
impl From for UseTree
fn from(e: UseName) -> UseTree
impl From for UseTree
fn from(e: UseGlob) -> UseTree
impl From for UseTree
fn from(e: UsePath) -> UseTree
impl From for UseTree
fn from(e: UseRename) -> UseTree
impl Hash for UseTree
fn hash<H>(self: &Self, state: &mut H) where H: Hasher
impl Parse for UseTree
fn parse(input: ParseStream<'_>) -> Result<UseTree>
impl PartialEq for UseTree
fn eq(self: &Self, other: &Self) -> bool
impl RefUnwindSafe for UseTree
impl Send for UseTree
impl Sync for UseTree
impl ToTokens for UseTree
fn to_tokens(self: &Self, tokens: &mut TokenStream)
impl Unpin for UseTree
impl UnsafeUnpin for UseTree
impl UnwindSafe for UseTree
impl<T> Any for UseTree
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for UseTree
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for UseTree
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for UseTree
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for UseTree
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for UseTree
fn span(self: &Self) -> Span
impl<T> ToOwned for UseTree
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for UseTree
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for UseTree
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for UseTree
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>