pub struct HexEncoded<T>(pub T)
where
T: ParseInt + LowerHex;
Expand description
Wrapper type to force deserialization assuming hexadecimal encoding.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> Clone for HexEncoded<T>
impl<T> Clone for HexEncoded<T>
Source§fn clone(&self) -> HexEncoded<T>
fn clone(&self) -> HexEncoded<T>
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<T> Debug for HexEncoded<T>
impl<T> Debug for HexEncoded<T>
Source§impl<'de, T> Deserialize<'de> for HexEncoded<T>
impl<'de, T> Deserialize<'de> for HexEncoded<T>
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
Source§impl<T: ParseInt + LowerHex> ParseInt for HexEncoded<T>
impl<T: ParseInt + LowerHex> ParseInt for HexEncoded<T>
type FromStrRadixErr = <T as ParseInt>::FromStrRadixErr
fn from_str_radix(src: &str, radix: u32) -> Result<Self, T::FromStrRadixErr>
fn from_str(src: &str) -> Result<Self, ParseIntError>
Source§impl<T> PartialEq for HexEncoded<T>
impl<T> PartialEq for HexEncoded<T>
impl<T> StructuralPartialEq for HexEncoded<T>
Auto Trait Implementations§
impl<T> Freeze for HexEncoded<T>where
T: Freeze,
impl<T> RefUnwindSafe for HexEncoded<T>where
T: RefUnwindSafe,
impl<T> Send for HexEncoded<T>where
T: Send,
impl<T> Sync for HexEncoded<T>where
T: Sync,
impl<T> Unpin for HexEncoded<T>where
T: Unpin,
impl<T> UnwindSafe for HexEncoded<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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