pub struct GenericFunctionConfig {
pub max_instantiations_per_template: usize,
pub enable_monomorphization: bool,
pub enable_type_inference: bool,
pub enable_caching: bool,
pub max_recursion_depth: usize,
pub enable_profiling: bool,
}Expand description
Configuration for generic functions
Fields§
§max_instantiations_per_template: usizeMaximum number of instantiations per template
enable_monomorphization: boolEnable automatic monomorphization
enable_type_inference: boolEnable type inference for generic functions
enable_caching: boolCache instantiated functions
max_recursion_depth: usizeMaximum recursion depth for generic instantiation
enable_profiling: boolEnable generic function profiling
Trait Implementations§
Source§impl Clone for GenericFunctionConfig
impl Clone for GenericFunctionConfig
Source§fn clone(&self) -> GenericFunctionConfig
fn clone(&self) -> GenericFunctionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericFunctionConfig
impl Debug for GenericFunctionConfig
Auto Trait Implementations§
impl Freeze for GenericFunctionConfig
impl RefUnwindSafe for GenericFunctionConfig
impl Send for GenericFunctionConfig
impl Sync for GenericFunctionConfig
impl Unpin for GenericFunctionConfig
impl UnsafeUnpin for GenericFunctionConfig
impl UnwindSafe for GenericFunctionConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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