Trait nanvm_lib::common::cast::Cast

source ·
pub trait Cast<T> {
    // Required method
    fn cast(self) -> T;
}

Required Methods§

source

fn cast(self) -> T

Implementations on Foreign Types§

source§

impl Cast<bool> for u64

source§

fn cast(self) -> bool

source§

impl Cast<u64> for bool

source§

fn cast(self) -> u64

source§

impl Cast<u64> for u64

source§

fn cast(self) -> u64

source§

impl Cast<Null> for u64

source§

fn cast(self) -> Null

source§

impl<T> Cast<*const T> for u64

source§

impl<T> Cast<u64> for *const T

source§

fn cast(self) -> u64

source§

impl<T, const N: usize> Cast<Vec<T>> for [T; N]

source§

fn cast(self) -> Vec<T>

Move the array into a vector. Compare to .to_vec(), the function doesn’t require Clone trait.

Implementors§