pub struct StringLiteral<'a>(/* private fields */);
Implementations§
Source§impl<'a> StringLiteral<'a>
impl<'a> StringLiteral<'a>
pub fn to_cow(&self) -> Cow<'a, str>
pub fn raw_untrimmed_str(&self) -> &'a str
pub fn kind(&self) -> StringLiteralKind
Trait Implementations§
Source§impl<'a> Clone for StringLiteral<'a>
impl<'a> Clone for StringLiteral<'a>
Source§fn clone(&self) -> StringLiteral<'a>
fn clone(&self) -> StringLiteral<'a>
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<'a> Debug for StringLiteral<'a>
impl<'a> Debug for StringLiteral<'a>
Source§impl Display for StringLiteral<'_>
impl Display for StringLiteral<'_>
impl<'a> Copy for StringLiteral<'a>
Auto Trait Implementations§
impl<'a> Freeze for StringLiteral<'a>
impl<'a> RefUnwindSafe for StringLiteral<'a>
impl<'a> Send for StringLiteral<'a>
impl<'a> Sync for StringLiteral<'a>
impl<'a> Unpin for StringLiteral<'a>
impl<'a> UnwindSafe for StringLiteral<'a>
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