Struct knightrs::text::InvalidChar [−][src]
Expand description
An error that indicates a character within a Knight string wasn’t valid.
Fields
chr: char
The byte that was invalid.
idx: usize
The index of the invalid byte in the given string.
Trait Implementations
impl Debug for InvalidChar
[src]
impl Debug for InvalidChar
[src]impl Display for InvalidChar
[src]
impl Display for InvalidChar
[src]impl Error for InvalidChar
[src]
impl Error for InvalidChar
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<InvalidChar> for Error
[src]
impl From<InvalidChar> for Error
[src]fn from(err: InvalidChar) -> Self
[src]
fn from(err: InvalidChar) -> Self
[src]Performs the conversion.
impl PartialEq<InvalidChar> for InvalidChar
[src]
impl PartialEq<InvalidChar> for InvalidChar
[src]fn eq(&self, other: &InvalidChar) -> bool
[src]
fn eq(&self, other: &InvalidChar) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &InvalidChar) -> bool
[src]
fn ne(&self, other: &InvalidChar) -> bool
[src]This method tests for !=
.
impl Eq for InvalidChar
[src]
impl StructuralEq for InvalidChar
[src]
impl StructuralPartialEq for InvalidChar
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvalidChar
impl Send for InvalidChar
impl Sync for InvalidChar
impl Unpin for InvalidChar
impl UnwindSafe for InvalidChar
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,