pub enum Item {
}Variants§
AttributeContaining(AttributeContaining)
Const(Const)
Enum(Enum)
ExternCrate(Crate)
ExternBlock(ExternBlock)
Function(Function)
Impl(Impl)
MacroCall(MacroCall)
Module(Module)
Static(Static)
Struct(Struct)
Trait(Trait)
TypeAlias(TypeAlias)
Use(Use)
Union(Union)
Implementations§
Source§impl Item
impl Item
pub fn into_attribute_containing(self) -> Option<AttributeContaining>
pub fn into_const(self) -> Option<Const>
pub fn into_enum(self) -> Option<Enum>
pub fn into_extern_crate(self) -> Option<Crate>
pub fn into_extern_block(self) -> Option<ExternBlock>
pub fn into_function(self) -> Option<Function>
pub fn into_impl(self) -> Option<Impl>
pub fn into_macro_call(self) -> Option<MacroCall>
pub fn into_module(self) -> Option<Module>
pub fn into_static(self) -> Option<Static>
pub fn into_struct(self) -> Option<Struct>
pub fn into_trait(self) -> Option<Trait>
pub fn into_type_alias(self) -> Option<TypeAlias>
pub fn into_use(self) -> Option<Use>
pub fn into_union(self) -> Option<Union>
pub fn as_attribute_containing(&self) -> Option<&AttributeContaining>
pub fn as_const(&self) -> Option<&Const>
pub fn as_enum(&self) -> Option<&Enum>
pub fn as_extern_crate(&self) -> Option<&Crate>
pub fn as_extern_block(&self) -> Option<&ExternBlock>
pub fn as_function(&self) -> Option<&Function>
pub fn as_impl(&self) -> Option<&Impl>
pub fn as_macro_call(&self) -> Option<&MacroCall>
pub fn as_module(&self) -> Option<&Module>
pub fn as_static(&self) -> Option<&Static>
pub fn as_struct(&self) -> Option<&Struct>
pub fn as_trait(&self) -> Option<&Trait>
pub fn as_type_alias(&self) -> Option<&TypeAlias>
pub fn as_use(&self) -> Option<&Use>
pub fn as_union(&self) -> Option<&Union>
pub fn is_attribute_containing(&self) -> bool
pub fn is_const(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_extern_crate(&self) -> bool
pub fn is_extern_block(&self) -> bool
pub fn is_function(&self) -> bool
pub fn is_impl(&self) -> bool
pub fn is_macro_call(&self) -> bool
pub fn is_module(&self) -> bool
pub fn is_static(&self) -> bool
pub fn is_struct(&self) -> bool
pub fn is_trait(&self) -> bool
pub fn is_type_alias(&self) -> bool
pub fn is_use(&self) -> bool
pub fn is_union(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more