pub struct Str<'i> {
pub inner: &'i str,
pub loc: (Loc, Loc),
}Expand description
String literal borrowed from the source with its surrounding quotes stripped.
Fields§
§inner: &'i strLiteral content without the surrounding quotes.
loc: (Loc, Loc)Source span including the quotes.
Trait Implementations§
impl<'i> Eq for Str<'i>
impl<'i> StructuralPartialEq for Str<'i>
Auto Trait Implementations§
impl<'i> Freeze for Str<'i>
impl<'i> RefUnwindSafe for Str<'i>
impl<'i> Send for Str<'i>
impl<'i> Sync for Str<'i>
impl<'i> Unpin for Str<'i>
impl<'i> UnsafeUnpin for Str<'i>
impl<'i> UnwindSafe for Str<'i>
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