INNER CODE UNIT · Rust

from_raw

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

            pub fn from_raw(word: #word_type) -> Self {
                Self(word)
            }

            /// Returns the elements representation of this value.
            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()
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…