Skip to main content

IdentityType

Trait IdentityType 

Source
pub trait IdentityType: Send + Sync {
    // Required methods
    fn from_bytes(bytes: &[u8]) -> Self;
    fn to_bytes(&self) -> &[u8] ;
    fn length() -> usize;
}

Required Methods§

Source

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

Source

fn to_bytes(&self) -> &[u8]

Source

fn length() -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§