pub struct ShadowedClosure<C: Closure + 'static> {
pub closure: Rc<RefCell<C>>,
}
Fields§
§closure: Rc<RefCell<C>>
Implementations§
Trait Implementations§
Source§impl<C: Closure + 'static> RustShadow for ShadowedClosure<C>
impl<C: Closure + 'static> RustShadow for ShadowedClosure<C>
fn inner(&self) -> Rc<RefCell<dyn BasicSnippet>>
fn rust_shadow_wrapper( &self, _stdin: &[BFieldElement], _nondeterminism: &NonDeterminism, stack: &mut Vec<BFieldElement>, _memory: &mut HashMap<BFieldElement, BFieldElement>, _sponge: &mut Option<VmHasher>, ) -> Vec<BFieldElement>
fn test(&self)
fn bench(&self)
Auto Trait Implementations§
impl<C> Freeze for ShadowedClosure<C>
impl<C> !RefUnwindSafe for ShadowedClosure<C>
impl<C> !Send for ShadowedClosure<C>
impl<C> !Sync for ShadowedClosure<C>
impl<C> Unpin for ShadowedClosure<C>
impl<C> !UnwindSafe for ShadowedClosure<C>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more