pub struct ConstHexForm<T>(_);
Available on crate feature const_len only.
Expand description

A dummy container for use inside #[serde(with)] attribute if the underlying type implements ConstHex.

Trait Implementations

Available on crate feature const_len only.
Error returned on unsuccessful deserialization.
Available on crate feature const_len only.
Converts the value into bytes. This is used for serialization.
Available on crate feature const_len only.
Creates a value from the byte slice. Read more
Available on crate feature const_len only.
Serializes the value for serde. This method is not meant to be overridden. Read more
Available on crate feature const_len only.
Deserializes a value using serde. This method is not meant to be overridden. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.