Skip to main content

Val

Trait Val 

Source
pub trait Val<T> {
    // Required method
    fn val(self) -> T;
}
Expand description

trait for unifying primitives and their references

Required Methods§

Source

fn val(self) -> T

gets the value

Implementations on Foreign Types§

Source§

impl<T: Copy> Val<T> for &T

Source§

fn val(self) -> T

Implementors§

Source§

impl<T> Val<T> for T