Enum kal::CommandOptionValueKind
source · [−]pub enum CommandOptionValueKind {
Optional(Box<CommandOptionValueKind>),
String,
Integer,
Double,
}Variants
Optional(Box<CommandOptionValueKind>)
String
Integer
Double
Implementations
sourceimpl CommandOptionValueKind
impl CommandOptionValueKind
pub fn is_optional(&self) -> bool
pub fn as_primitive(&self) -> CommandOptionValueKind
Trait Implementations
sourceimpl Clone for CommandOptionValueKind
impl Clone for CommandOptionValueKind
sourcefn clone(&self) -> CommandOptionValueKind
fn clone(&self) -> CommandOptionValueKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CommandOptionValueKind
impl Debug for CommandOptionValueKind
sourceimpl PartialEq<CommandOptionValueKind> for CommandOptionValueKind
impl PartialEq<CommandOptionValueKind> for CommandOptionValueKind
sourcefn eq(&self, other: &CommandOptionValueKind) -> bool
fn eq(&self, other: &CommandOptionValueKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for CommandOptionValueKind
Auto Trait Implementations
impl RefUnwindSafe for CommandOptionValueKind
impl Send for CommandOptionValueKind
impl Sync for CommandOptionValueKind
impl Unpin for CommandOptionValueKind
impl UnwindSafe for CommandOptionValueKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more