Enum serde_utils::num::NumberOrHexU64
source · pub enum NumberOrHexU64 {
Int(Number),
Hex(U64),
}
Expand description
An enum that represents either a serde_json::Number integer, or a hex [U64].
Variants§
Implementations§
source§impl NumberOrHexU64
impl NumberOrHexU64
sourcepub fn try_into_u64<E: Error>(self) -> Result<U64, E>
pub fn try_into_u64<E: Error>(self) -> Result<U64, E>
Tries to convert this into a [U64]].
Trait Implementations§
source§impl Debug for NumberOrHexU64
impl Debug for NumberOrHexU64
source§impl<'de> Deserialize<'de> for NumberOrHexU64
impl<'de> Deserialize<'de> for NumberOrHexU64
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NumberOrHexU64
impl Send for NumberOrHexU64
impl Sync for NumberOrHexU64
impl Unpin for NumberOrHexU64
impl UnwindSafe for NumberOrHexU64
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