pub(crate) enum StringOrChar<'ob> {
String(&'ob str),
Char(u64),
}
Variants§
Trait Implementations§
Source§impl<'ob> Clone for StringOrChar<'ob>
impl<'ob> Clone for StringOrChar<'ob>
Source§fn clone(&self) -> StringOrChar<'ob>
fn clone(&self) -> StringOrChar<'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 StringOrChar<'ob>
impl<'ob> TryFrom<Gc<ObjectType<'ob>>> for StringOrChar<'ob>
Source§impl<'ob> From<&'ob str> for StringOrChar<'ob>
impl<'ob> From<&'ob str> for StringOrChar<'ob>
Source§impl From<char> for StringOrChar<'_>
impl From<char> for StringOrChar<'_>
Source§impl<'ob> Debug for StringOrChar<'ob>
impl<'ob> Debug for StringOrChar<'ob>
impl<'ob> Copy for StringOrChar<'ob>
Auto Trait Implementations§
impl<'ob> Freeze for StringOrChar<'ob>
impl<'ob> RefUnwindSafe for StringOrChar<'ob>
impl<'ob> Send for StringOrChar<'ob>
impl<'ob> Sync for StringOrChar<'ob>
impl<'ob> Unpin for StringOrChar<'ob>
impl<'ob> UnwindSafe for StringOrChar<'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