Trait ValueDesc

Source
pub trait ValueDesc: TryInto<ValId> {
    type Err: From<<Self as TryInto<ValId>>::Error> + Into<ValueError>;

    // Provided method
    fn to_node<E>(self) -> Result<ValId, E>
       where <Self as TryInto<ValId>>::Error: Into<E> { ... }
}
Expand description

A trait implemented by representations of rain values

Required Associated Types§

Source

type Err: From<<Self as TryInto<ValId>>::Error> + Into<ValueError>

The error type for trying to convert this type into a ValId

Provided Methods§

Source

fn to_node<E>(self) -> Result<ValId, E>
where <Self as TryInto<ValId>>::Error: Into<E>,

Try to make this type into a node

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 ValueDesc for bool

Implementors§