pub enum JsonIntegerSignedness {
Signed,
Unsigned,
}Expand description
Signedness retained by an integer-range encoding failure.
§Examples
use qubit_json::encode::JsonIntegerSignedness;
use qubit_json::value::JsonValueEncoder;
let error = JsonValueEncoder::new()
.encode(&u128::MAX)
.expect_err("wide integer must be rejected");
assert_eq!(error.integer_signedness(), Some(JsonIntegerSignedness::Unsigned));Variants§
Signed
The source was serialized through a signed integer entry point.
Unsigned
The source was serialized through an unsigned integer entry point.
Trait Implementations§
Source§impl Clone for JsonIntegerSignedness
impl Clone for JsonIntegerSignedness
Source§fn clone(&self) -> JsonIntegerSignedness
fn clone(&self) -> JsonIntegerSignedness
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 JsonIntegerSignedness
Source§impl Debug for JsonIntegerSignedness
impl Debug for JsonIntegerSignedness
impl Eq for JsonIntegerSignedness
Source§impl Hash for JsonIntegerSignedness
impl Hash for JsonIntegerSignedness
Source§impl PartialEq for JsonIntegerSignedness
impl PartialEq for JsonIntegerSignedness
impl StructuralPartialEq for JsonIntegerSignedness
Auto Trait Implementations§
impl Freeze for JsonIntegerSignedness
impl RefUnwindSafe for JsonIntegerSignedness
impl Send for JsonIntegerSignedness
impl Sync for JsonIntegerSignedness
impl Unpin for JsonIntegerSignedness
impl UnsafeUnpin for JsonIntegerSignedness
impl UnwindSafe for JsonIntegerSignedness
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