pub struct OnionLambdaDefinition { /* private fields */ }Implementations§
Source§impl OnionLambdaDefinition
impl OnionLambdaDefinition
pub fn new_static( parameter: &OnionStaticObject, body: LambdaBody, capture: Option<&OnionStaticObject>, self_object: Option<&OnionStaticObject>, signature: String, ) -> OnionStaticObject
pub fn create_runnable( &self, argument: OnionStaticObject, this_lambda: &OnionStaticObject, gc: &mut GC<OnionObjectCell>, ) -> Result<Box<dyn Runnable>, RuntimeError>
pub fn get_signature(&self) -> &str
pub fn get_parameter(&self) -> &OnionObject
pub fn get_capture(&self) -> &OnionObject
pub fn get_self_object(&self) -> &OnionObject
pub fn get_body(&self) -> &LambdaBody
pub fn clone_and_replace_self_object( &self, new_self_object: &OnionStaticObject, ) -> OnionStaticObject
pub fn upgrade(&self, collected: &mut Vec<GCArc<OnionObjectCell>>)
pub fn with_attribute<F, R>( &self, key: &OnionObject, f: &F, ) -> Result<R, RuntimeError>
pub fn with_parameter<F, R>(&self, f: F) -> Result<R, RuntimeError>
Source§impl OnionLambdaDefinition
impl OnionLambdaDefinition
pub fn reconstruct_container(&self) -> Result<OnionObject, RuntimeError>
Trait Implementations§
Source§impl Clone for OnionLambdaDefinition
impl Clone for OnionLambdaDefinition
Source§fn clone(&self) -> OnionLambdaDefinition
fn clone(&self) -> OnionLambdaDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnionLambdaDefinition
impl Debug for OnionLambdaDefinition
Auto Trait Implementations§
impl Freeze for OnionLambdaDefinition
impl !RefUnwindSafe for OnionLambdaDefinition
impl Send for OnionLambdaDefinition
impl Sync for OnionLambdaDefinition
impl Unpin for OnionLambdaDefinition
impl !UnwindSafe for OnionLambdaDefinition
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