Trait Two

Source
pub trait Two: Sized {
    // Required method
    fn two() -> Self;
}
Expand description

Returns the constant value for the number two

Required Methods§

Source

fn two() -> 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 Two for f32

Source§

fn two() -> Self

Source§

impl Two for f64

Source§

fn two() -> Self

Source§

impl Two for i8

Source§

fn two() -> Self

Source§

impl Two for i16

Source§

fn two() -> Self

Source§

impl Two for i32

Source§

fn two() -> Self

Source§

impl Two for i64

Source§

fn two() -> Self

Source§

impl Two for i128

Source§

fn two() -> Self

Source§

impl Two for isize

Source§

fn two() -> Self

Source§

impl Two for u8

Source§

fn two() -> Self

Source§

impl Two for u16

Source§

fn two() -> Self

Source§

impl Two for u32

Source§

fn two() -> Self

Source§

impl Two for u64

Source§

fn two() -> Self

Source§

impl Two for u128

Source§

fn two() -> Self

Source§

impl Two for usize

Source§

fn two() -> Self

Implementors§

Source§

impl<T: Two + Zero> Two for Complex<T>