#[non_exhaustive]pub struct InvalidRun<'r> {
pub text: Span,
pub input: Span,
pub bytes: &'r [u8],
}Expand description
A run of invalid input bytes, replaced by one U+FFFD in the text: a
view into InvalidRuns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: SpanThe U+FFFD in the decoded text (UTF-8 byte range).
input: SpanThe byte range of the run in the input.
bytes: &'r [u8]The original bytes of the run.
Trait Implementations§
Source§impl<'r> Clone for InvalidRun<'r>
impl<'r> Clone for InvalidRun<'r>
impl<'r> Copy for InvalidRun<'r>
Source§impl<'r> Debug for InvalidRun<'r>
impl<'r> Debug for InvalidRun<'r>
impl<'r> Eq for InvalidRun<'r>
Source§impl<'r> Hash for InvalidRun<'r>
impl<'r> Hash for InvalidRun<'r>
Source§impl<'r> PartialEq for InvalidRun<'r>
impl<'r> PartialEq for InvalidRun<'r>
impl<'r> StructuralPartialEq for InvalidRun<'r>
Auto Trait Implementations§
impl<'r> Freeze for InvalidRun<'r>
impl<'r> RefUnwindSafe for InvalidRun<'r>
impl<'r> Send for InvalidRun<'r>
impl<'r> Sync for InvalidRun<'r>
impl<'r> Unpin for InvalidRun<'r>
impl<'r> UnsafeUnpin for InvalidRun<'r>
impl<'r> UnwindSafe for InvalidRun<'r>
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