[][src]Trait kari::data::types::Downcast

pub trait Downcast: Type {
    type Value: Value;
    fn downcast_raw(&self, _: Any) -> Result<Self::Value, Any>;

    fn downcast(&self, any: Any) -> Result<Self::Value, TypeError> { ... }
}

Associated Types

type Value: Value

Loading content...

Required methods

fn downcast_raw(&self, _: Any) -> Result<Self::Value, Any>

Loading content...

Provided methods

fn downcast(&self, any: Any) -> Result<Self::Value, TypeError>

Loading content...

Implementors

impl Downcast for Any[src]

type Value = Any

impl Downcast for Bool[src]

type Value = Bool

impl Downcast for Float[src]

type Value = Float

impl Downcast for List[src]

type Value = List

impl Downcast for Number[src]

type Value = Number

impl Downcast for Scope[src]

type Value = Scope

impl Downcast for String[src]

type Value = String

impl Downcast for Symbol[src]

type Value = Symbol

impl Downcast for Word[src]

type Value = Word

Loading content...