pub trait CommandOptionValueTy: Sized {
// Required method
fn spec_kind() -> CommandOptionValueKind;
// Provided method
fn default() -> Option<Self> { ... }
}Expand description
Associate Rust type with CommandOptionValueKind and provide Rust side default value.
Required Methods§
Sourcefn spec_kind() -> CommandOptionValueKind
fn spec_kind() -> CommandOptionValueKind
Associated value kind
Provided 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.