Enum rustc_hir::definitions::DefPathData [−][src]
pub enum DefPathData {
CrateRoot,
Misc,
Impl,
TypeNs(Symbol),
ValueNs(Symbol),
MacroNs(Symbol),
LifetimeNs(Symbol),
ClosureExpr,
Ctor,
AnonConst,
ImplTrait,
}Variants
Expand description
The crate root (marker).
Expand description
An impl.
TypeNs(Symbol)Expand description
Something in the type namespace.
ValueNs(Symbol)Expand description
Something in the value namespace.
MacroNs(Symbol)Expand description
Something in the macro namespace.
LifetimeNs(Symbol)Expand description
Something in the lifetime namespace.
Expand description
A closure expression.
Expand description
Implicit constructor for a unit or tuple-like struct or enum variant.
Expand description
A constant expression (see {ast,hir}::AnonConst).
Expand description
An impl Trait type node.
Implementations
impl DefPathData[src]
impl DefPathData[src]pub fn get_opt_name(&self) -> Option<Symbol>[src]
pub fn name(&self) -> DefPathDataName[src]
Trait Implementations
impl Clone for DefPathData[src]
impl Clone for DefPathData[src]fn clone(&self) -> DefPathData[src]
fn clone(&self) -> DefPathData[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for DefPathData[src]
impl Debug for DefPathData[src]impl<__D: Decoder> Decodable<__D> for DefPathData[src]
impl<__D: Decoder> Decodable<__D> for DefPathData[src]impl Display for DefPathData[src]
impl Display for DefPathData[src]impl<__E: Encoder> Encodable<__E> for DefPathData[src]
impl<__E: Encoder> Encodable<__E> for DefPathData[src]impl Hash for DefPathData[src]
impl Hash for DefPathData[src]impl PartialEq<DefPathData> for DefPathData[src]
impl PartialEq<DefPathData> for DefPathData[src]fn eq(&self, other: &DefPathData) -> bool[src]
fn eq(&self, other: &DefPathData) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &DefPathData) -> bool[src]
fn ne(&self, other: &DefPathData) -> bool[src]This method tests for !=.
impl Copy for DefPathData[src]
impl Eq for DefPathData[src]
impl StructuralEq for DefPathData[src]
impl StructuralPartialEq for DefPathData[src]
Auto Trait Implementations
impl RefUnwindSafe for DefPathData
impl Send for DefPathData
impl Sync for DefPathData
impl Unpin for DefPathData
impl UnwindSafe for DefPathData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more