#[non_exhaustive]pub enum ReaderError {
NoArray,
InvalidIndex,
NoObject,
InvalidMember,
InvalidNode,
NoValue,
InvalidType,
}Expand description
Error codes for JSON_READER_ERROR.
This enumeration can be extended at later date
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoArray
No array found at the current position
InvalidIndex
Index out of bounds
NoObject
No object found at the current position
InvalidMember
Member not found
InvalidNode
No valid node found at the current position
NoValue
The node at the current position does not hold a value
InvalidType
The node at the current position does not hold a value of the desired type
Trait Implementations§
Source§impl Clone for ReaderError
impl Clone for ReaderError
Source§fn clone(&self) -> ReaderError
fn clone(&self) -> ReaderError
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 moreimpl Copy for ReaderError
Source§impl Debug for ReaderError
impl Debug for ReaderError
impl Eq for ReaderError
Source§impl ErrorDomain for ReaderError
impl ErrorDomain for ReaderError
Source§impl From<ReaderError> for Value
impl From<ReaderError> for Value
Source§fn from(v: ReaderError) -> Self
fn from(v: ReaderError) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for ReaderError
impl<'a> FromValue<'a> for ReaderError
Source§type Checker = GenericValueTypeChecker<ReaderError>
type Checker = GenericValueTypeChecker<ReaderError>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for ReaderError
impl HasParamSpec for ReaderError
type ParamSpec = ParamSpecEnum
Source§type SetValue = ReaderError
type SetValue = ReaderError
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, ReaderError) -> ParamSpecEnumBuilder<'_, ReaderError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ReaderError
impl Hash for ReaderError
Source§impl Ord for ReaderError
impl Ord for ReaderError
Source§fn cmp(&self, other: &ReaderError) -> Ordering
fn cmp(&self, other: &ReaderError) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReaderError
impl PartialEq for ReaderError
Source§impl PartialOrd for ReaderError
impl PartialOrd for ReaderError
Source§impl StaticType for ReaderError
impl StaticType for ReaderError
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl StructuralPartialEq for ReaderError
Source§impl ToValue for ReaderError
impl ToValue for ReaderError
Source§impl ValueType for ReaderError
impl ValueType for ReaderError
Source§type Type = ReaderError
type Type = ReaderError
Type to get the
Type from. Read moreAuto Trait Implementations§
impl Freeze for ReaderError
impl RefUnwindSafe for ReaderError
impl Send for ReaderError
impl Sync for ReaderError
impl Unpin for ReaderError
impl UnsafeUnpin for ReaderError
impl UnwindSafe for ReaderError
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§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.