pub enum AuthoredItemKind {
Module,
Structure,
Enumeration,
Union,
Trait,
Function,
Implementation,
TypeAlias,
Constant,
Static,
Use,
ExternalCrate,
}Expand description
The structural Rust item family one authored-item lens recognized.
The row identifies only the item’s mechanical envelope. Rustc remains responsible for whether the complete tokens form lawful Rust and what that Rust means.
Variants§
Module
A module item.
Structure
A structure item.
Enumeration
An enumeration item.
Union
A union item.
Trait
A trait item.
Function
A function item.
Implementation
An implementation item.
TypeAlias
A type alias.
Constant
A constant item.
Static
A static item.
Use
A use item.
ExternalCrate
An external-crate item.
Trait Implementations§
Source§impl Clone for AuthoredItemKind
impl Clone for AuthoredItemKind
Source§fn clone(&self) -> AuthoredItemKind
fn clone(&self) -> AuthoredItemKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AuthoredItemKind
Source§impl Debug for AuthoredItemKind
impl Debug for AuthoredItemKind
Source§impl Display for AuthoredItemKind
impl Display for AuthoredItemKind
impl Eq for AuthoredItemKind
Source§impl Hash for AuthoredItemKind
impl Hash for AuthoredItemKind
Source§impl PartialEq for AuthoredItemKind
impl PartialEq for AuthoredItemKind
impl StructuralPartialEq for AuthoredItemKind
Auto Trait Implementations§
impl Freeze for AuthoredItemKind
impl RefUnwindSafe for AuthoredItemKind
impl Send for AuthoredItemKind
impl Sync for AuthoredItemKind
impl Unpin for AuthoredItemKind
impl UnsafeUnpin for AuthoredItemKind
impl UnwindSafe for AuthoredItemKind
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