Skip to main content

Scalar

Type Alias Scalar 

Source
pub type Scalar<T> = Buf<T, 0>;
Expand description

A single value, see Buf.

Aliased Type§

pub struct Scalar<T> { /* private fields */ }

Trait Implementations§

Source§

impl<'a, T: TangoElement + ?Sized> TryFrom<&'a Value> for &'a Scalar<T>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(data: &'a Value) -> Result<Self, Error>

Performs the conversion.
Source§

impl<T: TangoElement + ?Sized> TryFrom<Value> for Scalar<T>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(data: Value) -> Result<Self, Error>

Performs the conversion.