Trait Twenty

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

Returns the constant value for the number twenty

Required Methods§

Source

fn twenty() -> 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 Twenty for f32

Source§

fn twenty() -> Self

Source§

impl Twenty for f64

Source§

fn twenty() -> Self

Source§

impl Twenty for i8

Source§

fn twenty() -> Self

Source§

impl Twenty for i16

Source§

fn twenty() -> Self

Source§

impl Twenty for i32

Source§

fn twenty() -> Self

Source§

impl Twenty for i64

Source§

fn twenty() -> Self

Source§

impl Twenty for i128

Source§

fn twenty() -> Self

Source§

impl Twenty for isize

Source§

fn twenty() -> Self

Source§

impl Twenty for u8

Source§

fn twenty() -> Self

Source§

impl Twenty for u16

Source§

fn twenty() -> Self

Source§

impl Twenty for u32

Source§

fn twenty() -> Self

Source§

impl Twenty for u64

Source§

fn twenty() -> Self

Source§

impl Twenty for u128

Source§

fn twenty() -> Self

Source§

impl Twenty for usize

Source§

fn twenty() -> Self

Implementors§

Source§

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