pub enum SymbolKind {
Behaviour {
module: ModuleName,
},
Callback {
module: ModuleName,
function: FunctionName,
arity: Arity,
},
Function {
mfa: Mfa,
},
FunctionAnyArity {
module: ModuleName,
function: FunctionName,
},
Macro {
name: String,
},
Record {
name: RecordName,
},
Type {
module: ModuleName,
name: TypeName,
arity: Arity,
},
}Variants§
Behaviour
Fields
§
module: ModuleNameCallback
Function
FunctionAnyArity
A function reference whose arity could not be determined from the source line (the call’s closing paren sits on a later line). Resolves against a snapshot when any export carries the name; never produces an arity mismatch.
Macro
Record
Fields
§
name: RecordNameType
Implementations§
Source§impl SymbolKind
impl SymbolKind
pub fn as_exported(&self) -> Option<ExportedSymbol<'_>>
Trait Implementations§
Source§impl Clone for SymbolKind
impl Clone for SymbolKind
Source§impl Debug for SymbolKind
impl Debug for SymbolKind
Source§impl<'de> Deserialize<'de> for SymbolKind
impl<'de> Deserialize<'de> for SymbolKind
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 SymbolKind
Source§impl Hash for SymbolKind
impl Hash for SymbolKind
Source§impl Ord for SymbolKind
impl Ord for SymbolKind
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SymbolKind
impl PartialEq for SymbolKind
Source§impl PartialOrd for SymbolKind
impl PartialOrd for SymbolKind
Source§impl Serialize for SymbolKind
impl Serialize for SymbolKind
impl StructuralPartialEq for SymbolKind
Auto Trait Implementations§
impl Forget for SymbolKind
impl Freeze for SymbolKind
impl Move for SymbolKind
impl RefUnwindSafe for SymbolKind
impl Send for SymbolKind
impl Sync for SymbolKind
impl Unpin for SymbolKind
impl UnsafeUnpin for SymbolKind
impl UnwindSafe for SymbolKind
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