LeBytes

Trait LeBytes 

Source
pub trait LeBytes: BeBytes {
    // Provided methods
    fn to_le_bytes(&self) -> Vec<u8>  { ... }
    fn from_le_bytes(bytes: &[u8]) -> Option<Self> { ... }
}

Provided Methods§

Source

fn to_le_bytes(&self) -> Vec<u8>

Source

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl LeBytes for Scalar

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for Scalar

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for Scalar

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for SigningKey

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for Scalar

Source§

impl LeBytes for SigningKey

Source§

impl LeBytes for Scalar

Source§

impl LeBytes for Scalar

Source§

impl LeBytes for WrappedScalar

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for Fr

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for Scalar

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Source§

impl LeBytes for SigningKey

Source§

impl LeBytes for NonZeroScalar

Source§

impl LeBytes for SigningKey

Source§

impl LeBytes for NonZeroScalar

Source§

impl LeBytes for SigningKey

Source§

impl LeBytes for NonZeroScalar

Source§

impl LeBytes for Scalar

Source§

fn to_le_bytes(&self) -> Vec<u8>

Source§

fn from_le_bytes(bytes: &[u8]) -> Option<Self>

Implementors§