pub struct SymbolRef {
pub kind: SymbolKind,
pub origin: RefOrigin,
}Fields§
§kind: SymbolKind§origin: RefOriginImplementations§
Source§impl SymbolRef
impl SymbolRef
pub fn function(mfa: Mfa) -> Self
pub fn function_any_arity(module: ModuleName, function: FunctionName) -> Self
pub fn record(name: RecordName) -> Self
pub fn macro_use(name: impl Into<String>) -> Self
pub fn type_ref(module: ModuleName, name: TypeName, arity: Arity) -> Self
pub fn with_origin(self, origin: RefOrigin) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SymbolRef
impl<'de> Deserialize<'de> for SymbolRef
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 SymbolRef
Source§impl Ord for SymbolRef
impl Ord for SymbolRef
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 PartialOrd for SymbolRef
impl PartialOrd for SymbolRef
impl StructuralPartialEq for SymbolRef
Auto Trait Implementations§
impl Freeze for SymbolRef
impl RefUnwindSafe for SymbolRef
impl Send for SymbolRef
impl Sync for SymbolRef
impl Unpin for SymbolRef
impl UnsafeUnpin for SymbolRef
impl UnwindSafe for SymbolRef
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