[][src]Enum poco_scheme::Value

pub enum Value {
    Fixnum(isize),
    String(Box<String>),
    Bool(bool),
    Null,
    Unspecified,
    Cons(Gc<[Value; 2]>),
    Symbol(Box<String>),
    PrimOp(&'static PrimOp),
    Closure(Box<Closure>),
    Exception(Box<Exception>),
}

Variants

Fixnum(isize)String(Box<String>)Bool(bool)NullUnspecifiedCons(Gc<[Value; 2]>)Symbol(Box<String>)PrimOp(&'static PrimOp)Closure(Box<Closure>)Exception(Box<Exception>)

Methods

impl Value[src]

pub fn into_result(self) -> Result<Value, Box<Exception>>[src]

pub fn list<I>(_elts: I) -> Self where
    I: IntoIterator,
    I::Item: Into<Value>, 
[src]

pub fn number<T>(n: T) -> Self where
    T: Into<isize>, 
[src]

pub fn as_fixnum(&self) -> Option<isize>[src]

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

pub fn to_datum(&self) -> Option<Value>[src]

Trait Implementations

impl Clone for Value[src]

impl PartialEq<Value> for Value[src]

impl From<bool> for Value[src]

impl<'a> From<&'a str> for Value[src]

impl From<Box<Exception>> for Value[src]

impl<'_> From<&'_ Value> for Value[src]

impl Display for Value[src]

impl Debug for Value[src]

impl Trace for Value[src]

impl Finalize for Value[src]

Auto Trait Implementations

impl Unpin for Value

impl !Sync for Value

impl !Send for Value

impl !UnwindSafe for Value

impl !RefUnwindSafe for Value

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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