pub struct ShadowedFunction<F: Function + 'static> {
pub function: Rc<RefCell<F>>,
}
Fields§
§function: Rc<RefCell<F>>
Implementations§
Trait Implementations§
Source§impl<F> RustShadow for ShadowedFunction<F>where
F: Function + 'static,
impl<F> RustShadow for ShadowedFunction<F>where
F: Function + 'static,
Source§fn bench(&self)
fn bench(&self)
Count number of cycles and other performance indicators and save them in directory benchmarks/.
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>
Auto Trait Implementations§
impl<F> Freeze for ShadowedFunction<F>
impl<F> !RefUnwindSafe for ShadowedFunction<F>
impl<F> !Send for ShadowedFunction<F>
impl<F> !Sync for ShadowedFunction<F>
impl<F> Unpin for ShadowedFunction<F>
impl<F> !UnwindSafe for ShadowedFunction<F>
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