pub trait SyscallGenericLibfunc: Default {
const STR_ID: &'static str;
// Required methods
fn input_tys(
context: &dyn SignatureSpecializationContext,
) -> Result<Vec<ConcreteTypeId>, SpecializationError>;
fn success_output_tys(
context: &dyn SignatureSpecializationContext,
) -> Result<Vec<ConcreteTypeId>, SpecializationError>;
}
Expand description
Trait for implementing a library function for syscalls.
Required Associated Constants§
Required Methods§
sourcefn input_tys(
context: &dyn SignatureSpecializationContext,
) -> Result<Vec<ConcreteTypeId>, SpecializationError>
fn input_tys( context: &dyn SignatureSpecializationContext, ) -> Result<Vec<ConcreteTypeId>, SpecializationError>
The non implicits inputs for the libfunc.
sourcefn success_output_tys(
context: &dyn SignatureSpecializationContext,
) -> Result<Vec<ConcreteTypeId>, SpecializationError>
fn success_output_tys( context: &dyn SignatureSpecializationContext, ) -> Result<Vec<ConcreteTypeId>, SpecializationError>
The success case non implicits outputs of the libfunc.
Object Safety§
This trait is not object safe.