[][src]Enum glsp::Callable

pub enum Callable {
    RFn(RFn),
    GFn(Root<GFn>),
    Class(Root<Class>),
}

A type-erased callable.

Because this type implements the CallableOps trait, you can call it directly, without needing to access the underlying types.

Variants

RFn(RFn)
GFn(Root<GFn>)
Class(Root<Class>)

Trait Implementations

impl CallableOps for Callable[src]

impl Clone for Callable[src]

impl Debug for Callable[src]

impl FromVal for Callable[src]

impl ToVal for Callable[src]

Auto Trait Implementations

impl !GSend for Callable

impl !GStore for Callable

impl !RefUnwindSafe for Callable

impl !Send for Callable

impl !Sync for Callable

impl Unpin for Callable

impl !UnwindSafe for Callable

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> Erased for T

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

impl<T> FromElement<Slot> for T where
    T: FromVal
[src]

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

impl<T> IntoElement<Slot> for T where
    T: ToVal
[src]

impl<T> IntoResult for T where
    T: ToVal
[src]

impl<'a, T> MakeArg<'a> for T where
    T: FromVal + MakeTemp<Temp = Slot>, 
[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.