serde_hex::config

Trait HexConf

Source
pub trait HexConf {
    // Provided methods
    fn compact() -> bool { ... }
    fn withpfx() -> bool { ... }
    fn withcap() -> bool { ... }
}
Expand description

Trait for supplying configuration to SerHex. This trait takes no self parameters, as it is intended to be applied unit structs. All default implementation are set to false.

Provided Methods§

Source

fn compact() -> bool

function indicating whether to use compact (as apposed to strict) representation.

Source

fn withpfx() -> bool

function indicating whether to prefixing (0x).

Source

fn withcap() -> bool

function indicating whether to use capital letters (A-F).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§