pub struct KeywordAsString(/* private fields */);Expand description
Type to hold anything in Slosh that can be represented as a slosh symbol, however, this
type, in contrast to Keyword does need to do some allocations, specifically when
using [SlFrom]. Not a huge penalty but worth mentioning if unnecessary.
Public type used by rust native -> slosh bridge macro to represent arguments that reference a valid symbol.
Can represent SlRefInto Value types:
- Keyword
Always returns a Value::Keyword type.
Trait Implementations§
Source§impl AsRef<str> for KeywordAsString
impl AsRef<str> for KeywordAsString
Source§impl From<KeywordAsString> for String
impl From<KeywordAsString> for String
Source§fn from(value: KeywordAsString) -> Self
fn from(value: KeywordAsString) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeywordAsString
impl RefUnwindSafe for KeywordAsString
impl Send for KeywordAsString
impl Sync for KeywordAsString
impl Unpin for KeywordAsString
impl UnwindSafe for KeywordAsString
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