Trait IntoValue

Source
pub trait IntoValue: Sized {
    // Required methods
    fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result;
    fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result;

    // Provided methods
    fn into_value(self) -> WitValue { ... }
    fn get_type() -> WitType { ... }
}
Expand description

Specific trait to convert a type into a pair of WitValue and WitType.

Required Methods§

Source

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoValue for bool

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for char

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for f32

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for f64

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for i8

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for i16

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for i32

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for i64

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for u8

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for u16

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for u32

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for u64

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl IntoValue for String

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl<A: IntoValue, B: IntoValue> IntoValue for (A, B)

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl<A: IntoValue, B: IntoValue, C: IntoValue> IntoValue for (A, B, C)

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl<E: IntoValue> IntoValue for Result<(), E>

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl<K: IntoValue, V: IntoValue> IntoValue for HashMap<K, V>

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl<S: IntoValue> IntoValue for Result<S, ()>

Source§

fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result

Source§

fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result

Source§

impl<S: IntoValue, E: IntoValue> IntoValue for Result<S, E>

Source§

fn add_to_builder<B: NodeBuilder>(self, builder: B) -> B::Result

Source§

fn add_to_type_builder<B: TypeNodeBuilder>(builder: B) -> B::Result

Source§

impl<T: IntoValue> IntoValue for Bound<T>

Source§

fn add_to_builder<B: NodeBuilder>(self, builder: B) -> B::Result

Source§

fn add_to_type_builder<B: TypeNodeBuilder>(builder: B) -> B::Result

Source§

impl<T: IntoValue> IntoValue for Option<T>

Source§

fn add_to_builder<B: NodeBuilder>(self, builder: B) -> B::Result

Source§

fn add_to_type_builder<B: TypeNodeBuilder>(builder: B) -> B::Result

Source§

impl<T: IntoValue> IntoValue for Vec<T>

Source§

fn add_to_builder<B: NodeBuilder>(self, builder: B) -> B::Result

Source§

fn add_to_type_builder<B: TypeNodeBuilder>(builder: B) -> B::Result

Implementors§