[][src]Enum glsp::Callable

pub enum Callable {
    RFn(Root<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(Root<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<'a> IntoVal for &'a Callable[src]

impl<'a> IntoVal for &'a mut Callable[src]

impl IntoVal for Callable[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> 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: IntoVal
[src]

impl<T> IntoVal for T where
    T: StaticMarker, 
[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.