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
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§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
InvalidStarter
: 8 bytesNoTerminator
: 16 bytesTooManyDelimiters
: 8 bytes