#[non_exhaustive]pub struct DisplayTextError {
pub index: usize,
pub ch: char,
}Expand description
Why a string breaks the display-text profile of draft-atwood-jmap-updates-00 §6.2.
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.index: usizeByte offset of the offending character.
ch: charThe offending character.
Trait Implementations§
Source§impl Clone for DisplayTextError
impl Clone for DisplayTextError
Source§impl Debug for DisplayTextError
impl Debug for DisplayTextError
Source§impl Display for DisplayTextError
impl Display for DisplayTextError
impl Eq for DisplayTextError
Source§impl Error for DisplayTextError
impl Error for DisplayTextError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DisplayTextError
impl PartialEq for DisplayTextError
impl StructuralPartialEq for DisplayTextError
Auto Trait Implementations§
impl Forget for DisplayTextError
impl Freeze for DisplayTextError
impl Move for DisplayTextError
impl RefUnwindSafe for DisplayTextError
impl Send for DisplayTextError
impl Sync for DisplayTextError
impl Unpin for DisplayTextError
impl UnsafeUnpin for DisplayTextError
impl UnwindSafe for DisplayTextError
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.