pub trait TryFromFelt252: Default {
const STR_ID: &'static str;
const GENERIC_TYPE_ID: GenericTypeId;
}
Expand description
Trait for implementing try_{ty}_from_felt252.
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.
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.