pub struct InvalidLevel(/* private fields */);Expand description
Error indicating an invalid level
The level of a contract must be in 1..=7
Trait Implementations§
Source§impl Clone for InvalidLevel
impl Clone for InvalidLevel
Source§fn clone(&self) -> InvalidLevel
fn clone(&self) -> InvalidLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 InvalidLevel
impl Debug for InvalidLevel
Source§impl Display for InvalidLevel
impl Display for InvalidLevel
Source§impl Error for InvalidLevel
impl Error for InvalidLevel
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 Hash for InvalidLevel
impl Hash for InvalidLevel
Source§impl Ord for InvalidLevel
impl Ord for InvalidLevel
Source§fn cmp(&self, other: &InvalidLevel) -> Ordering
fn cmp(&self, other: &InvalidLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InvalidLevel
impl PartialEq for InvalidLevel
Source§impl PartialOrd for InvalidLevel
impl PartialOrd for InvalidLevel
impl Copy for InvalidLevel
impl Eq for InvalidLevel
impl StructuralPartialEq for InvalidLevel
Auto Trait Implementations§
impl Freeze for InvalidLevel
impl RefUnwindSafe for InvalidLevel
impl Send for InvalidLevel
impl Sync for InvalidLevel
impl Unpin for InvalidLevel
impl UnsafeUnpin for InvalidLevel
impl UnwindSafe for InvalidLevel
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