Trait Value

Source
pub trait Value: PartialEq + Clone {
    // Required methods
    fn as_slice(&self) -> &[u8] ;
    fn zero() -> Self;

    // Provided method
    fn is_zero(&self) -> bool { ... }
}
Expand description

Trait for define value structures

Required Methods§

Source

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

Source

fn zero() -> Self

Provided Methods§

Source

fn is_zero(&self) -> bool

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§