Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ToAsciiArrayTrait

Fully qualified path: alexandria_ascii::integer::ToAsciiArrayTrait

pub trait ToAsciiArrayTrait<T>

Trait functions

to_ascii_array

Converts an integer to an array of its individual ASCII values in normal order

Arguments

  • self - The integer value to convert to ASCII array

Fully qualified path: alexandria_ascii::integer::ToAsciiArrayTrait::to_ascii_array

fn to_ascii_array(self: T) -> Array<felt252>

to_inverse_ascii_array

Converts an integer to an array of its individual ASCII values in reverse order

Arguments

  • self - The integer value to convert to inverse ASCII array

Fully qualified path: alexandria_ascii::integer::ToAsciiArrayTrait::to_inverse_ascii_array

fn to_inverse_ascii_array(self: T) -> Array<felt252>