INNER CODE UNIT · Rust

as_elements

0xMiden/crypto · miden-crypto-derive/src/lib.rs:221

            pub fn as_elements(&self) -> &[<#word_type as ::core::ops::Index<usize>>::Output] {
                self.0.as_elements()
            }

            /// Returns the byte representation of this value.
            pub fn as_bytes(&self) -> [u8; 32] {
                self.0.as_bytes()
            }

            /// Returns a big-endian, hex-encoded string.
            pub fn to_hex(&self) -> String {
                self.0.to_hex()
            }

            /// Returns the underlying word of this value.
            pub fn as_word(&self) -> #word_type {
                self.0
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…