pub enum InnerFunction {
RawCode(RawCode),
DeprecatedSnippet(Box<dyn DeprecatedSnippet>),
BasicSnippet(Box<dyn BasicSnippet>),
NoFunctionBody(NoFunctionBody),
}Variants§
RawCode(RawCode)
DeprecatedSnippet(Box<dyn DeprecatedSnippet>)
BasicSnippet(Box<dyn BasicSnippet>)
NoFunctionBody(NoFunctionBody)
Implementations§
Source§impl InnerFunction
impl InnerFunction
pub fn domain(&self) -> DataType
pub fn range(&self) -> DataType
Sourcepub fn entrypoint(&self) -> String
pub fn entrypoint(&self) -> String
Return the entrypoint, label, of the inner function. Used to make a call to this function.
Sourcepub fn apply(
&self,
stack: &mut Vec<BFieldElement>,
memory: &HashMap<BFieldElement, BFieldElement>,
)
pub fn apply( &self, stack: &mut Vec<BFieldElement>, memory: &HashMap<BFieldElement, BFieldElement>, )
Computes the inner function and applies the resulting change to the given stack
Auto Trait Implementations§
impl Freeze for InnerFunction
impl !RefUnwindSafe for InnerFunction
impl !Send for InnerFunction
impl !Sync for InnerFunction
impl Unpin for InnerFunction
impl !UnwindSafe for InnerFunction
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