[−][src]Struct gluon_vm::core::CoreClosure
Implementations
impl CoreClosure
[src]
pub fn new(
allocator: FrozenAllocator,
id: &'static TypedIdent<Symbol>,
args: &'static [TypedIdent<Symbol>],
expr: CExpr<'static>
) -> CoreClosure
[src]
allocator: FrozenAllocator,
id: &'static TypedIdent<Symbol>,
args: &'static [TypedIdent<Symbol>],
expr: CExpr<'static>
) -> CoreClosure
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]
self,
f: impl for<'a> FnOnce(&'a TypedIdent<Symbol>, &'a [TypedIdent<Symbol>], CExpr<'a>) -> (&'a TypedIdent<Symbol>, &'a [TypedIdent<Symbol>], CExpr<'a>)
) -> Self
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]
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,
Trait Implementations
impl Clone for CoreClosure
[src]
fn clone(&self) -> CoreClosure
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CoreClosure
[src]
impl Display for CoreClosure
[src]
impl Eq for CoreClosure
[src]
impl Hash for CoreClosure
[src]
fn hash<H: Hasher>(&self, h: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<CoreClosure> for CoreClosure
[src]
Auto Trait Implementations
impl !RefUnwindSafe for CoreClosure
impl Send for CoreClosure
impl Sync for CoreClosure
impl Unpin for CoreClosure
impl !UnwindSafe for CoreClosure
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'_, T> Captures<'_> for T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastArc for T where
T: Downcast + Send + Sync,
[src]
T: Downcast + Send + Sync,
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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]
U: From<T>,
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<Source> Sculptor<HNil, HNil> for Source
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,