Skip to main content

ValueScalar

Trait ValueScalar 

Source
pub trait ValueScalar: ValueDomain {
    // Required methods
    fn into_scalar(
        label: &'static str,
        value: Self::Value<'_>,
    ) -> QueryResult<GraphRecordValue>;
    fn from_scalar<'a>(
        role: &Self::Value<'_>,
        value: GraphRecordValue,
    ) -> Self::Value<'a>;
}

Required Methods§

Source

fn into_scalar( label: &'static str, value: Self::Value<'_>, ) -> QueryResult<GraphRecordValue>

Source

fn from_scalar<'a>( role: &Self::Value<'_>, value: GraphRecordValue, ) -> Self::Value<'a>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§