#[non_exhaustive]pub struct LoneSurrogateError {
pub surrogate: u16,
}
Expand description
Details of a lone UTF-16 surrogate error.
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.surrogate: u16
The 16-bit surrogate code point.
Trait Implementations§
Source§impl Clone for LoneSurrogateError
impl Clone for LoneSurrogateError
Source§fn clone(&self) -> LoneSurrogateError
fn clone(&self) -> LoneSurrogateError
Returns a duplicate 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 LoneSurrogateError
impl Debug for LoneSurrogateError
Source§impl PartialEq for LoneSurrogateError
impl PartialEq for LoneSurrogateError
impl Copy for LoneSurrogateError
impl Eq for LoneSurrogateError
impl StructuralPartialEq for LoneSurrogateError
Auto Trait Implementations§
impl Freeze for LoneSurrogateError
impl RefUnwindSafe for LoneSurrogateError
impl Send for LoneSurrogateError
impl Sync for LoneSurrogateError
impl Unpin for LoneSurrogateError
impl UnwindSafe for LoneSurrogateError
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