pub trait HexLiteral {
    fn hex_suffixed(self) -> LitInt;
    fn hex_unsuffixed(self) -> LitInt;
    fn hex_padded_suffixed(self) -> LitInt;
    fn hex_padded_unsuffixed(self) -> LitInt;
}
Expand description

Used to convert literal values into their hex representations for code generation.

Required Methods

Converts the given value into a hex represented literal with type suffix.

Converts the given value into a hex represented literal without type suffix.

Converts the given value into a hex represented literal with type suffix.

The resulting hex encoded literal is padded with zeros.

Converts the given value into a hex represented literal without type suffix.

The resulting hex encoded literal is padded with zeros.

Implementations on Foreign Types

Implementors