Queueable

Trait Queueable 

Source
pub trait Queueable {
    // Required methods
    fn into_nonzero(self) -> NonZeroUsize;
    unsafe fn from_nonzero(n: NonZeroUsize) -> Self;
}

Required Methods§

Source

fn into_nonzero(self) -> NonZeroUsize

Source

unsafe fn from_nonzero(n: NonZeroUsize) -> Self

§Safety

Unsafe conversion from NonZeroUsize.

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 Queueable for NonZeroUsize

Source§

impl<T> Queueable for &'static T

Source§

impl<T> Queueable for Box<T>

Source§

impl<T> Queueable for Arc<T>

Source§

impl<T> Queueable for NonNull<T>

Implementors§