Inner

Trait Inner 

Source
pub trait Inner<T> {
    // Required methods
    fn inner(&self) -> &T;
    fn into_inner(self) -> T;
}
Expand description

Inner for Newtypes to get the innermost value

DO NOT REMOVE - its been added and removed twice already, NumCast is a pain to use and won’t work for half our types

Required Methods§

Source

fn inner(&self) -> &T

Source

fn into_inner(self) -> T

Implementations on Foreign Types§

Source§

impl Inner<bool> for bool

Source§

fn inner(&self) -> &bool

Source§

fn into_inner(self) -> bool

Source§

impl Inner<f32> for f32

Source§

fn inner(&self) -> &f32

Source§

fn into_inner(self) -> f32

Source§

impl Inner<f64> for f64

Source§

fn inner(&self) -> &f64

Source§

fn into_inner(self) -> f64

Source§

impl Inner<i8> for i8

Source§

fn inner(&self) -> &i8

Source§

fn into_inner(self) -> i8

Source§

impl Inner<i16> for i16

Source§

fn inner(&self) -> &i16

Source§

fn into_inner(self) -> i16

Source§

impl Inner<i32> for i32

Source§

fn inner(&self) -> &i32

Source§

fn into_inner(self) -> i32

Source§

impl Inner<i64> for i64

Source§

fn inner(&self) -> &i64

Source§

fn into_inner(self) -> i64

Source§

impl Inner<i128> for i128

Source§

fn inner(&self) -> &i128

Source§

fn into_inner(self) -> i128

Source§

impl Inner<u8> for u8

Source§

fn inner(&self) -> &u8

Source§

fn into_inner(self) -> u8

Source§

impl Inner<u16> for u16

Source§

fn inner(&self) -> &u16

Source§

fn into_inner(self) -> u16

Source§

impl Inner<u32> for u32

Source§

fn inner(&self) -> &u32

Source§

fn into_inner(self) -> u32

Source§

impl Inner<u64> for u64

Source§

fn inner(&self) -> &u64

Source§

fn into_inner(self) -> u64

Source§

impl Inner<u128> for u128

Source§

fn inner(&self) -> &u128

Source§

fn into_inner(self) -> u128

Source§

impl Inner<String> for String

Implementors§