pub trait CompileWithState<U, A, O, E> {
type Args<'a>;
// Required method
fn compile<'args>(
self,
shapeless: bool,
) -> impl CallMutWithState<U, Self::Args<'args>, O, E>;
}
Expand description
A trait for functions that can be compiled with state.
This trait is used to compile a function that takes a mutable reference to a state and some arguments and returns a result.
§Generic parameters
U
: The type of the state.A
: The type of the arguments.O
: The type of the output.E
: The type of the exception.
Required Associated Types§
Required Methods§
Sourcefn compile<'args>(
self,
shapeless: bool,
) -> impl CallMutWithState<U, Self::Args<'args>, O, E>
fn compile<'args>( self, shapeless: bool, ) -> impl CallMutWithState<U, Self::Args<'args>, O, E>
Compile the function.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.