pub struct Symbol(pub String);Expand description
an interned name: the string that a QalaType::Named carries when it
stands for a user-declared struct, enum, or interface.
a thin newtype around String rather than a bare String – it
documents intent at every call site (this is a name, not arbitrary text)
and prevents accidental mixing with display strings.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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