[][src]Enum oso::PolarValue

pub enum PolarValue {
    Integer(i64),
    Float(f64),
    String(String),
    Boolean(bool),
    Map(HashMap<String, PolarValue>),
    List(Vec<PolarValue>),
    Variable(String),
    Instance(Instance),
}

Variants

Integer(i64)
Float(f64)
String(String)
Boolean(bool)
Variable(String)
Instance(Instance)

Implementations

impl PolarValue[src]

pub fn new_from_instance<T>(instance: T) -> Self where
    T: Send + Sync + 'static, 
[src]

Trait Implementations

impl Clone for PolarValue[src]

impl Debug for PolarValue[src]

impl FromPolarValue for PolarValue[src]

impl ToPolar for PolarValue[src]

impl TryFrom<PolarValue> for u8[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for i8[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl<T: FromPolarValue> TryFrom<PolarValue> for HashMap<String, T>[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl<T: FromPolarValue> TryFrom<PolarValue> for Vec<T>[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for u16[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for i16[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for u32[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for i32[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for i64[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for f64[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for String[src]

type Error = OsoError

The type returned in the event of a conversion error.

impl TryFrom<PolarValue> for bool[src]

type Error = OsoError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.