Struct erg_compiler::ty::const_subr::GenConstSubr
source · pub struct GenConstSubr { /* private fields */ }
Implementations§
source§impl GenConstSubr
impl GenConstSubr
pub fn new<S: Into<Str>>( name: S, data: ClosureData, subr: fn(_: ClosureData, _: ValueArgs, _: &Context) -> EvalValueResult<ValueObj>, sig_t: Type, as_type: Option<Type> ) -> Self
pub fn call(&self, args: ValueArgs, ctx: &Context) -> EvalValueResult<ValueObj>
Trait Implementations§
source§impl Clone for GenConstSubr
impl Clone for GenConstSubr
source§fn clone(&self) -> GenConstSubr
fn clone(&self) -> GenConstSubr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenConstSubr
impl Debug for GenConstSubr
source§impl Display for GenConstSubr
impl Display for GenConstSubr
source§impl Hash for GenConstSubr
impl Hash for GenConstSubr
source§impl PartialEq<GenConstSubr> for GenConstSubr
impl PartialEq<GenConstSubr> for GenConstSubr
impl Eq for GenConstSubr
Auto Trait Implementations§
impl RefUnwindSafe for GenConstSubr
impl Send for GenConstSubr
impl Sync for GenConstSubr
impl Unpin for GenConstSubr
impl UnwindSafe for GenConstSubr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more