pub(crate) struct StringOrSymbol<'ob>(&'ob str);
Tuple Fields§
§0: &'ob str
Trait Implementations§
Source§impl<'ob> Clone for StringOrSymbol<'ob>
impl<'ob> Clone for StringOrSymbol<'ob>
Source§fn clone(&self) -> StringOrSymbol<'ob>
fn clone(&self) -> StringOrSymbol<'ob>
Returns a copy 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<'ob> TryFrom<Gc<ObjectType<'ob>>> for StringOrSymbol<'ob>
impl<'ob> TryFrom<Gc<ObjectType<'ob>>> for StringOrSymbol<'ob>
Source§impl<'ob> Debug for StringOrSymbol<'ob>
impl<'ob> Debug for StringOrSymbol<'ob>
impl<'ob> Copy for StringOrSymbol<'ob>
Auto Trait Implementations§
impl<'ob> Freeze for StringOrSymbol<'ob>
impl<'ob> RefUnwindSafe for StringOrSymbol<'ob>
impl<'ob> Send for StringOrSymbol<'ob>
impl<'ob> Sync for StringOrSymbol<'ob>
impl<'ob> Unpin for StringOrSymbol<'ob>
impl<'ob> UnwindSafe for StringOrSymbol<'ob>
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