pub enum StringLit<'a> {
Double(Cow<'a, str>),
Single(Cow<'a, str>),
}
Variants§
Implementations§
Source§impl<'a> StringLit<'a>
impl<'a> StringLit<'a>
pub fn double_from(s: &'a str) -> StringLit<'a>
pub fn single_from(s: &'a str) -> StringLit<'a>
pub fn clone_inner(&self) -> Cow<'a, str>
pub fn inner_matches(&self, o: &str) -> bool
Trait Implementations§
impl<'a> StructuralPartialEq for StringLit<'a>
Auto Trait Implementations§
impl<'a> Freeze for StringLit<'a>
impl<'a> RefUnwindSafe for StringLit<'a>
impl<'a> Send for StringLit<'a>
impl<'a> Sync for StringLit<'a>
impl<'a> Unpin for StringLit<'a>
impl<'a> UnwindSafe for StringLit<'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