Trait Bit

Source
pub trait Bit {
    type Neg: Bit;

    // Required methods
    fn val() -> bool;
    fn new() -> Self;
}
Expand description

Type-level enum of True and False.

Required Associated Types§

Source

type Neg: Bit

Result of negation of bit

Required Methods§

Source

fn val() -> bool

Real, represented with rust’s objects value of type.

Source

fn new() -> Self

Real value of type.

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§