Trait Address

Source
pub trait Address:
    Debug
    + Len
    + PartialEq {
    // Required methods
    fn from_bytes(bytes: &[u8]) -> Self;
    fn to_vec(&self) -> Vec<u8> ;
}
Expand description

Sfynx address.

Required Methods§

Source

fn from_bytes(bytes: &[u8]) -> Self

Source

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

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.

Implementors§