Struct hex_buffer_serde::ConstHexForm [−][src]
pub struct ConstHexForm<T>(_);
This is supported on crate feature
const_len
only.A dummy container for use inside #[serde(with)]
attribute if the underlying type
implements ConstHex
.
Trait Implementations
impl<const N: usize> ConstHex<[u8; N], N> for ConstHexForm<[u8; N]>
[src]
impl<const N: usize> ConstHex<[u8; N], N> for ConstHexForm<[u8; N]>
[src]type Error = TryFromSliceError
This is supported on crate feature
const_len
only.Error returned on unsuccessful deserialization.
fn create_bytes(buffer: &[u8; N]) -> [u8; N]
[src]
fn from_bytes(bytes: [u8; N]) -> Result<[u8; N], Self::Error>
[src]
fn serialize<S: Serializer>(value: &T, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn deserialize<'de, D>(deserializer: D) -> Result<T, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl<T> RefUnwindSafe for ConstHexForm<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for ConstHexForm<T> where
T: RefUnwindSafe,
impl<T> Send for ConstHexForm<T> where
T: Send,
impl<T> Send for ConstHexForm<T> where
T: Send,
impl<T> Sync for ConstHexForm<T> where
T: Sync,
impl<T> Sync for ConstHexForm<T> where
T: Sync,
impl<T> Unpin for ConstHexForm<T> where
T: Unpin,
impl<T> Unpin for ConstHexForm<T> where
T: Unpin,
impl<T> UnwindSafe for ConstHexForm<T> where
T: UnwindSafe,
impl<T> UnwindSafe for ConstHexForm<T> where
T: UnwindSafe,