Skip to main content

BitsTarget

Trait BitsTarget 

Source
pub trait BitsTarget: Copy {
    // Required method
    fn from_u128(val: u128) -> Self;
}

Required Methods§

Source

fn from_u128(val: u128) -> Self

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

Source§

fn from_u128(val: u128) -> Self

Source§

impl BitsTarget for u8

Source§

fn from_u128(val: u128) -> Self

Source§

impl BitsTarget for u16

Source§

fn from_u128(val: u128) -> Self

Source§

impl BitsTarget for u32

Source§

fn from_u128(val: u128) -> Self

Source§

impl BitsTarget for u64

Source§

fn from_u128(val: u128) -> Self

Source§

impl BitsTarget for u128

Source§

fn from_u128(val: u128) -> Self

Source§

impl BitsTarget for usize

Source§

fn from_u128(val: u128) -> Self

Implementors§