Trait bitflags::parser::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.

Object Safety§

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§