Trait ink_lang_ir::HexLiteral
source · [−]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
sourcefn hex_suffixed(self) -> LitInt
fn hex_suffixed(self) -> LitInt
Converts the given value into a hex represented literal with type suffix.
sourcefn hex_unsuffixed(self) -> LitInt
fn hex_unsuffixed(self) -> LitInt
Converts the given value into a hex represented literal without type suffix.
sourcefn hex_padded_suffixed(self) -> LitInt
fn hex_padded_suffixed(self) -> LitInt
Converts the given value into a hex represented literal with type suffix.
The resulting hex encoded literal is padded with zeros.
sourcefn hex_padded_unsuffixed(self) -> LitInt
fn hex_padded_unsuffixed(self) -> LitInt
Converts the given value into a hex represented literal without type suffix.
The resulting hex encoded literal is padded with zeros.