Trait BitOrIdentity

Source
pub trait BitOrIdentity: Sized + BitOr<Output = Self> {
    // Required method
    fn all_zero() -> Self;
}

Required Methods§

Source

fn all_zero() -> Self

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 BitOrIdentity for bool

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for i8

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for i16

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for i32

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for i64

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for isize

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for u8

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for u16

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for u32

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for u64

Source§

fn all_zero() -> Self

Source§

impl BitOrIdentity for usize

Source§

fn all_zero() -> Self

Implementors§