pub(crate) enum CustomError {
DuplicateKey {
key: String,
table: Option<Vec<Key>>,
},
DottedKeyExtendWrongType {
key: Vec<Key>,
actual: &'static str,
},
OutOfRange,
RecursionLimitExceeded,
}
Variants§
Implementations§
source§impl CustomError
impl CustomError
pub(crate) fn duplicate_key(path: &[Key], i: usize) -> Self
pub(crate) fn extend_wrong_type( path: &[Key], i: usize, actual: &'static str, ) -> Self
Trait Implementations§
source§impl Clone for CustomError
impl Clone for CustomError
source§fn clone(&self) -> CustomError
fn clone(&self) -> CustomError
Returns a copy 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 CustomError
impl Debug for CustomError
source§impl Display for CustomError
impl Display for CustomError
source§impl Error for CustomError
impl Error for CustomError
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for CustomError
impl RefUnwindSafe for CustomError
impl Send for CustomError
impl Sync for CustomError
impl Unpin for CustomError
impl UnwindSafe for CustomError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)