Skip to main content

ZeroableVolume

Trait ZeroableVolume 

Source
pub trait ZeroableVolume:
    AddReleaseUnchecked<Self, Self, Result<Self, FromVolumeTypeError>>
    + SubReleaseUnchecked<Self, Self, Result<Self, FromVolumeTypeError>>
    + Debug
    + Clone
    + Copy
    + PartialEq
    + Eq
    + PartialOrd
    + Ord
where Self: Into<Result<Self, FromVolumeTypeError>>,
{ const ZERO: Self; // Required method fn is_zero(&self) -> bool; // Provided methods fn as_zeroable(&self) -> Zeroable<Self> { ... } fn into_zeroable(self) -> Zeroable<Self> { ... } }

Required Associated Constants§

Source

const ZERO: Self

Required Methods§

Source

fn is_zero(&self) -> bool

Provided Methods§

Source

fn as_zeroable(&self) -> Zeroable<Self>

Source

fn into_zeroable(self) -> Zeroable<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§