pub enum DiagnosticTextError {
Empty,
}Expand description
Errors returned while constructing diagnostic text primitives.
Variants§
Empty
The text was empty after trimming surrounding whitespace.
Trait Implementations§
Source§impl Clone for DiagnosticTextError
impl Clone for DiagnosticTextError
Source§fn clone(&self) -> DiagnosticTextError
fn clone(&self) -> DiagnosticTextError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiagnosticTextError
impl Debug for DiagnosticTextError
Source§impl Display for DiagnosticTextError
impl Display for DiagnosticTextError
Source§impl Error for DiagnosticTextError
impl Error for DiagnosticTextError
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 DiagnosticTextError
impl PartialEq for DiagnosticTextError
Source§fn eq(&self, other: &DiagnosticTextError) -> bool
fn eq(&self, other: &DiagnosticTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DiagnosticTextError
impl Eq for DiagnosticTextError
impl StructuralPartialEq for DiagnosticTextError
Auto Trait Implementations§
impl Freeze for DiagnosticTextError
impl RefUnwindSafe for DiagnosticTextError
impl Send for DiagnosticTextError
impl Sync for DiagnosticTextError
impl Unpin for DiagnosticTextError
impl UnsafeUnpin for DiagnosticTextError
impl UnwindSafe for DiagnosticTextError
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