[][src]Struct gluon_vm::core::CoreClosure

pub struct CoreClosure { /* fields omitted */ }

Implementations

impl CoreClosure[src]

pub fn new(
    allocator: FrozenAllocator,
    id: &'static TypedIdent<Symbol>,
    args: &'static [TypedIdent<Symbol>],
    expr: CExpr<'static>
) -> CoreClosure
[src]

pub fn closure<'a>(&'a self) -> ClosureRef<'a>[src]

pub fn into_expr(self) -> CoreExpr[src]

pub fn map(
    self,
    f: impl for<'a> FnOnce(&'a TypedIdent<Symbol>, &'a [TypedIdent<Symbol>], CExpr<'a>) -> (&'a TypedIdent<Symbol>, &'a [TypedIdent<Symbol>], CExpr<'a>)
) -> Self
[src]

pub fn with<F, R>(self, f: F) -> R where
    F: for<'a, 'b> FnOnce(&(dyn Fn(CExpr<'a>) -> CoreExpr + 'b), &(dyn Fn(&'a TypedIdent<Symbol>, &'a [TypedIdent<Symbol>], CExpr<'a>) -> CoreClosure + 'b), ClosureRef<'a>) -> R, 
[src]

Trait Implementations

impl Clone for CoreClosure[src]

impl Debug for CoreClosure[src]

impl Display for CoreClosure[src]

impl Eq for CoreClosure[src]

impl Hash for CoreClosure[src]

impl PartialEq<CoreClosure> for CoreClosure[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<'_, T> Captures<'_> for T[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<D, T> FromPtr<D> for T[src]

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

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.