pub struct RawSymbolName {
pub name: String,
pub kind: Option<String>,
}Expand description
A raw symbol name as written in the source (without the leading @),
optionally carrying the :Kind annotation for the binder.
The parser produces these rather than resolved SymbolIds because
symbol tables are workspace-scoped and binding happens in a later
pipeline stage. When the surface uses @name:Kind, the annotation
is preserved in Self::kind so the binder can override the
position-default kind.
Fields§
§name: StringThe @name part without the @.
kind: Option<String>Optional :Kind annotation — passed through to the binder for
kind override or validation.
Implementations§
Trait Implementations§
Source§impl Clone for RawSymbolName
impl Clone for RawSymbolName
Source§fn clone(&self) -> RawSymbolName
fn clone(&self) -> RawSymbolName
Returns a duplicate of the value. Read more
1.0.0 · 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 RawSymbolName
impl Debug for RawSymbolName
Source§impl Hash for RawSymbolName
impl Hash for RawSymbolName
Source§impl PartialEq for RawSymbolName
impl PartialEq for RawSymbolName
impl Eq for RawSymbolName
impl StructuralPartialEq for RawSymbolName
Auto Trait Implementations§
impl Freeze for RawSymbolName
impl RefUnwindSafe for RawSymbolName
impl Send for RawSymbolName
impl Sync for RawSymbolName
impl Unpin for RawSymbolName
impl UnsafeUnpin for RawSymbolName
impl UnwindSafe for RawSymbolName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.