pub trait ConstGenLibfunc: Default {
const STR_ID: &'static str;
const GENERIC_TYPE_ID: GenericTypeId;
// Required method
fn bound() -> BigInt;
}
Expand description
Trait for implementing a library function that returns a const of a given type.
Required Associated Constants§
Sourceconst GENERIC_TYPE_ID: GenericTypeId
const GENERIC_TYPE_ID: GenericTypeId
The id of the generic type to implement the library functions for.
Required Methods§
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.