Skip to main content

Empty

Trait Empty 

Source
pub trait Empty {
    const EMPTY: Self;

    // Required method
    fn is_empty(&self) -> bool;
}

Required Associated Constants§

Source

const EMPTY: Self

Required Methods§

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Empty for u8

Source§

const EMPTY: Self = 0

Source§

fn is_empty(&self) -> bool

Source§

impl Empty for u128

Source§

const EMPTY: Self = 0

Source§

fn is_empty(&self) -> bool

Source§

impl<T> Empty for Option<T>

Source§

const EMPTY: Self = None

Source§

fn is_empty(&self) -> bool

Source§

impl<T> Empty for Vec<T>

Source§

const EMPTY: Self

Source§

fn is_empty(&self) -> bool

Implementors§

Source§

impl Empty for Id

Source§

const EMPTY: Self

Source§

impl<T: Empty> Empty for Players<T>

Source§

const EMPTY: Self

Source§

impl<T: Empty> Empty for Roles<T>

Source§

const EMPTY: Self

Source§

impl<T: Empty> Empty for Sides<T>

Source§

const EMPTY: Self

Source§

impl<X, T: Empty, const N: usize> Empty for Table<X, T, N>

Source§

const EMPTY: Self