Function word_to_masm_push_string

Source
pub fn word_to_masm_push_string(word: &[BaseElement; 4]) -> String
Expand description

Converts a word into a string of the word’s field elements separated by periods, which can be used on a MASM push instruction to push the word onto the stack.

§Example

let word = Word::from([Felt::new(1), Felt::new(2), Felt::new(3), Felt::new(4)]);
assert_eq!(word_to_masm_push_string(&word), "1.2.3.4");