pub enum ReferenceKind {
Module,
Import,
Call,
Type,
Implementation,
}Expand description
The closed vocabulary of references a report emits.
Variants§
Module
A module declaration naming another source.
Import
An import, including a rename, a group member, a glob, or a re-export.
Call
A call.
Type
A type mentioned in a signature, a body, or a bound.
Implementation
An implementation naming its type or its trait.
Trait Implementations§
Source§impl Clone for ReferenceKind
impl Clone for ReferenceKind
Source§fn clone(&self) -> ReferenceKind
fn clone(&self) -> ReferenceKind
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 ReferenceKind
Source§impl Debug for ReferenceKind
impl Debug for ReferenceKind
Source§impl<'de> Deserialize<'de> for ReferenceKind
impl<'de> Deserialize<'de> for ReferenceKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReferenceKind
Source§impl Hash for ReferenceKind
impl Hash for ReferenceKind
Source§impl Ord for ReferenceKind
impl Ord for ReferenceKind
Source§fn cmp(&self, other: &ReferenceKind) -> Ordering
fn cmp(&self, other: &ReferenceKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReferenceKind
impl PartialEq for ReferenceKind
Source§impl PartialOrd for ReferenceKind
impl PartialOrd for ReferenceKind
Source§impl Serialize for ReferenceKind
impl Serialize for ReferenceKind
impl StructuralPartialEq for ReferenceKind
Auto Trait Implementations§
impl Freeze for ReferenceKind
impl RefUnwindSafe for ReferenceKind
impl Send for ReferenceKind
impl Sync for ReferenceKind
impl Unpin for ReferenceKind
impl UnsafeUnpin for ReferenceKind
impl UnwindSafe for ReferenceKind
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