pub trait PrimitiveValues {
    type T;

    // Required method
    fn to_primitive_values(&self) -> Self::T;
}
Expand description

Used to convert a type to primitive values representing it.

Required Associated Types§

source

type T

A tuple of types, to represent the current value.

Required Methods§

source

fn to_primitive_values(&self) -> Self::T

Convert a value to primitive types representing it.

Implementations on Foreign Types§

source§

impl PrimitiveValues for MacAddr

§

type T = (u8, u8, u8, u8, u8, u8)

source§

fn to_primitive_values(&self) -> (u8, u8, u8, u8, u8, u8)

source§

impl PrimitiveValues for Ipv6Addr

§

type T = (u16, u16, u16, u16, u16, u16, u16, u16)

source§

fn to_primitive_values(&self) -> (u16, u16, u16, u16, u16, u16, u16, u16)

source§

impl PrimitiveValues for Ipv4Addr

§

type T = (u8, u8, u8, u8)

source§

fn to_primitive_values(&self) -> (u8, u8, u8, u8)

Implementors§