pub struct DotCharError {
pub byte_index: usize,
pub character: char,
}Expand description
An error indicating that an unsafe DOT character was found in a string when constructing
a DotSafe.
Fields§
§byte_index: usizeThe byte index in the string where the first unsafe character was encountered.
character: charThe unsafe character that was encountered.
Implementations§
Source§impl DotCharError
impl DotCharError
Trait Implementations§
Source§impl Clone for DotCharError
impl Clone for DotCharError
Source§fn clone(&self) -> DotCharError
fn clone(&self) -> DotCharError
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 moreimpl Copy for DotCharError
Source§impl Debug for DotCharError
impl Debug for DotCharError
Source§impl Display for DotCharError
impl Display for DotCharError
impl Eq for DotCharError
Source§impl Error for DotCharError
impl Error for DotCharError
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 DotCharError
impl PartialEq for DotCharError
impl StructuralPartialEq for DotCharError
Auto Trait Implementations§
impl Freeze for DotCharError
impl RefUnwindSafe for DotCharError
impl Send for DotCharError
impl Sync for DotCharError
impl Unpin for DotCharError
impl UnsafeUnpin for DotCharError
impl UnwindSafe for DotCharError
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