pub trait OptimismSpec:
Spec
+ Sized
+ 'static {
const OPTIMISM_SPEC_ID: OptimismSpecId;
// Provided method
fn optimism_enabled(spec_id: OptimismSpecId) -> bool { ... }
}
Required Associated Constants§
Sourceconst OPTIMISM_SPEC_ID: OptimismSpecId
const OPTIMISM_SPEC_ID: OptimismSpecId
The specification ID for optimism.
Provided Methods§
Sourcefn optimism_enabled(spec_id: OptimismSpecId) -> bool
fn optimism_enabled(spec_id: OptimismSpecId) -> bool
Returns whether the provided OptimismSpec
is enabled by this spec.
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.