Skip to main content

ToValue

Trait ToValue 

Source
pub trait ToValue {
    // Required method
    fn to_value(&self) -> Value<'_>;
}
Expand description

A type that can be converted into a Value.

Required Methods§

Source

fn to_value(&self) -> Value<'_>

Perform the conversion.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToValue for ()

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for IpAddr

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for Ipv4Addr

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for Ipv6Addr

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroI8

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroI16

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroI32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroI64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroI128

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroIsize

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroU8

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroU16

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroU32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroU64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroU128

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for NonZeroUsize

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for SocketAddr

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for SocketAddrV4

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for SocketAddrV6

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for bool

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for char

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for f32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for f64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i8

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i16

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for i128

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for isize

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for str

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u8

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u16

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u32

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u64

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for u128

Source§

fn to_value(&self) -> Value<'_>

Source§

impl ToValue for usize

Source§

fn to_value(&self) -> Value<'_>

Source§

impl<T> ToValue for &T
where T: ToValue + ?Sized,

Source§

fn to_value(&self) -> Value<'_>

Source§

impl<T> ToValue for Option<T>
where T: ToValue,

Source§

fn to_value(&self) -> Value<'_>

Implementors§

Source§

impl<'v> ToValue for Value<'v>