INNER CODE UNIT · Rust

as_bytes

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

            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
            }
        }
    };

    TokenStream::from(expanded)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…