pub enum RawStrError {
InvalidStarter {
bad_char: char,
},
NoTerminator {
expected: u32,
found: u32,
possible_terminator_offset: Option<u32>,
},
TooManyDelimiters {
found: u32,
},
}
Variants§
InvalidStarter
Non #
characters exist between r
and "
, e.g. r##~"abcde"##
NoTerminator
The string was not terminated, e.g. r###"abcde"##
.
possible_terminator_offset
is the number of characters after r
or
br
where they may have intended to terminate it.
TooManyDelimiters
More than 255 #
s exist.
Trait Implementations§
Source§impl Clone for RawStrError
impl Clone for RawStrError
Source§fn clone(&self) -> RawStrError
fn clone(&self) -> RawStrError
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 Debug for RawStrError
impl Debug for RawStrError
Source§impl Ord for RawStrError
impl Ord for RawStrError
Source§fn cmp(&self, other: &RawStrError) -> Ordering
fn cmp(&self, other: &RawStrError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RawStrError
impl PartialEq for RawStrError
Source§impl PartialOrd for RawStrError
impl PartialOrd for RawStrError
impl Copy for RawStrError
impl Eq for RawStrError
impl StructuralPartialEq for RawStrError
Auto Trait Implementations§
impl Freeze for RawStrError
impl RefUnwindSafe for RawStrError
impl Send for RawStrError
impl Sync for RawStrError
impl Unpin for RawStrError
impl UnwindSafe for RawStrError
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