pub enum PendingStr<'buf> {
NoEscapes(&'buf str),
HasEscapes(EscapeStr<'buf>),
}Expand description
Marks a &str as having escapes or not.
Variants§
NoEscapes(&'buf str)
The &str has no escapes and can be used as is.
HasEscapes(EscapeStr<'buf>)
The &str has escape chars and needs to be unescaped before trying to parse into another form.
Auto Trait Implementations§
impl<'buf> Freeze for PendingStr<'buf>
impl<'buf> RefUnwindSafe for PendingStr<'buf>
impl<'buf> Send for PendingStr<'buf>
impl<'buf> Sync for PendingStr<'buf>
impl<'buf> Unpin for PendingStr<'buf>
impl<'buf> UnsafeUnpin for PendingStr<'buf>
impl<'buf> UnwindSafe for PendingStr<'buf>
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