Enum yharnam::YarnValue[][src]

pub enum YarnValue {
    Str(String),
    Bool(bool),
    Number(f32),
    Null,
}

Variants

Str(String)
Bool(bool)
Number(f32)
Null

Implementations

impl YarnValue[src]

pub fn as_string(&self) -> String[src]

pub fn as_number(&self) -> f32[src]

pub fn as_bool(&self) -> bool[src]

pub fn add(&self, other: &Self) -> Option<Self>[src]

pub fn sub(&self, other: &Self) -> Option<Self>[src]

pub fn mul(&self, other: &Self) -> Option<Self>[src]

pub fn div(&self, other: &Self) -> Option<Self>[src]

pub fn neg(&self) -> Self[src]

pub fn rem(&self, other: &Self) -> Option<Self>[src]

Trait Implementations

impl Clone for YarnValue[src]

impl Debug for YarnValue[src]

impl From<String> for YarnValue[src]

impl From<bool> for YarnValue[src]

impl From<f32> for YarnValue[src]

impl PartialEq<YarnValue> for YarnValue[src]

impl PartialOrd<YarnValue> for YarnValue[src]

impl StructuralPartialEq for YarnValue[src]

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, 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.