#[non_exhaustive]pub struct SymbolName {
pub sigil: String,
pub name: String,
pub package: Option<String>,
}Expand description
A package/stash symbol named by a PIR operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sigil: StringSymbol sigil when known.
name: StringSymbol name without sigil.
package: Option<String>Package context active where the symbol is used, when known.
Trait Implementations§
Source§impl Clone for SymbolName
impl Clone for SymbolName
Source§fn clone(&self) -> SymbolName
fn clone(&self) -> SymbolName
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 moreSource§impl Debug for SymbolName
impl Debug for SymbolName
impl Eq for SymbolName
Source§impl PartialEq for SymbolName
impl PartialEq for SymbolName
Source§fn eq(&self, other: &SymbolName) -> bool
fn eq(&self, other: &SymbolName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SymbolName
Auto Trait Implementations§
impl Freeze for SymbolName
impl RefUnwindSafe for SymbolName
impl Send for SymbolName
impl Sync for SymbolName
impl Unpin for SymbolName
impl UnsafeUnpin for SymbolName
impl UnwindSafe for SymbolName
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