Skip to main content

BspFromValue

Trait BspFromValue 

Source
pub trait BspFromValue: Sized {
    // Required method
    fn from_value(
        value: BspValue,
        node_id: NodeId,
        port: PortIndex,
    ) -> Result<Self, BspError>;
}
Expand description

Translates a raw BspValue back into a typed parameter.

Required Methods§

Source

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BspFromValue for String

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl BspFromValue for Value

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl BspFromValue for bool

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl BspFromValue for f64

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl BspFromValue for i64

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl<T: Any + Send + Sync> BspFromValue for Arc<T>

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl<T: BspFromValue + Clone + Send + Sync + 'static> BspFromValue for Vec<T>

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Source§

impl<T: BspFromValue> BspFromValue for Option<T>

Source§

fn from_value( value: BspValue, node_id: NodeId, port: PortIndex, ) -> Result<Self, BspError>

Implementors§