Trait ink_lang_ir::HexLiteral [−][src]
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
fn hex_suffixed(self) -> LitInt
fn hex_suffixed(self) -> LitInt
Converts the given value into a hex represented literal with type suffix.
fn hex_unsuffixed(self) -> LitInt
fn hex_unsuffixed(self) -> LitInt
Converts the given value into a hex represented literal without type suffix.
fn 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.
fn 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.