Trait 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§