bitflags::parser

Trait WriteHex

Source
pub trait WriteHex {
    // Required method
    fn write_hex<W: Write>(&self, writer: W) -> Result;
}
Expand description

Encode a value as a hex string.

Implementors of this trait should not write the 0x prefix.

Required Methods§

Source

fn write_hex<W: Write>(&self, writer: W) -> Result

Write the value as hex.

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.

Implementations on Foreign Types§

Source§

impl WriteHex for i8

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for i16

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for i32

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for i64

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for i128

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for isize

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for u8

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for u16

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for u32

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for u64

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for u128

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Source§

impl WriteHex for usize

Source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Implementors§