pub enum NrViewError {
NullPointer,
LengthOverflow,
InvalidUtf8(Utf8Error),
}Expand description
Error returned when an ABI string or byte view is malformed.
Variants§
NullPointer
A non-empty view has a null pointer.
LengthOverflow
The ABI length cannot be represented by this platform’s usize.
InvalidUtf8(Utf8Error)
A string view does not contain valid UTF-8.
Trait Implementations§
Source§impl Clone for NrViewError
impl Clone for NrViewError
Source§fn clone(&self) -> NrViewError
fn clone(&self) -> NrViewError
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 NrViewError
impl Debug for NrViewError
Source§impl Display for NrViewError
impl Display for NrViewError
impl Eq for NrViewError
Source§impl Error for NrViewError
impl Error for NrViewError
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 NrViewError
impl PartialEq for NrViewError
impl StructuralPartialEq for NrViewError
Auto Trait Implementations§
impl Freeze for NrViewError
impl RefUnwindSafe for NrViewError
impl Send for NrViewError
impl Sync for NrViewError
impl Unpin for NrViewError
impl UnsafeUnpin for NrViewError
impl UnwindSafe for NrViewError
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