Convert

Trait Convert 

Source
pub trait Convert {
    // Required method
    fn convert(input: &str, numeric: bool, split: bool) -> String;
}
Expand description

Convert trait

Required Methods§

Source

fn convert(input: &str, numeric: bool, split: bool) -> String

Convert input to hex or string depending on the implementation

§Arguments
  • input - The input to convert
  • numeric - If set to true, the input will be considered as a numeric value.
  • split - If set to true, the output will be split in bytes
§Returns

A string with the converted input

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§