pub enum PickError {
KeyNotFound(String),
IndexOutOfBounds(i64),
NotAnObject(String, String),
NotAnArray(String),
InvalidSelector(String),
ParseError(String, String),
NoInput,
UnknownFormat,
InputTooLarge(u64),
TooManyResults(usize),
Io(Error),
}Variants§
KeyNotFound(String)
IndexOutOfBounds(i64)
NotAnObject(String, String)
NotAnArray(String)
InvalidSelector(String)
ParseError(String, String)
NoInput
UnknownFormat
InputTooLarge(u64)
TooManyResults(usize)
Io(Error)
Trait Implementations§
Source§impl Error for PickError
impl Error for PickError
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()
Auto Trait Implementations§
impl Freeze for PickError
impl !RefUnwindSafe for PickError
impl Send for PickError
impl Sync for PickError
impl Unpin for PickError
impl UnsafeUnpin for PickError
impl !UnwindSafe for PickError
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