Enum kal::CommandArgumentValue
source · [−]Variants
String(String)
I64(i64)
F64(f64)
Trait Implementations
sourceimpl Clone for CommandArgumentValue
impl Clone for CommandArgumentValue
sourcefn clone(&self) -> CommandArgumentValue
fn clone(&self) -> CommandArgumentValue
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 TryFrom<CommandArgumentValue> for Option<String>
impl TryFrom<CommandArgumentValue> for Option<String>
type Error = CommandArgumentValueTypeMismatchError
type Error = CommandArgumentValueTypeMismatchError
The type returned in the event of a conversion error.
sourcefn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
fn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<CommandArgumentValue> for Option<f64>
impl TryFrom<CommandArgumentValue> for Option<f64>
type Error = CommandArgumentValueTypeMismatchError
type Error = CommandArgumentValueTypeMismatchError
The type returned in the event of a conversion error.
sourcefn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
fn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<CommandArgumentValue> for Option<i64>
impl TryFrom<CommandArgumentValue> for Option<i64>
type Error = CommandArgumentValueTypeMismatchError
type Error = CommandArgumentValueTypeMismatchError
The type returned in the event of a conversion error.
sourcefn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
fn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<CommandArgumentValue> for String
impl TryFrom<CommandArgumentValue> for String
type Error = CommandArgumentValueTypeMismatchError
type Error = CommandArgumentValueTypeMismatchError
The type returned in the event of a conversion error.
sourcefn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
fn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<CommandArgumentValue> for f64
impl TryFrom<CommandArgumentValue> for f64
type Error = CommandArgumentValueTypeMismatchError
type Error = CommandArgumentValueTypeMismatchError
The type returned in the event of a conversion error.
sourcefn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
fn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<CommandArgumentValue> for i64
impl TryFrom<CommandArgumentValue> for i64
type Error = CommandArgumentValueTypeMismatchError
type Error = CommandArgumentValueTypeMismatchError
The type returned in the event of a conversion error.
sourcefn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
fn try_from(value: CommandArgumentValue) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CommandArgumentValue
impl Send for CommandArgumentValue
impl Sync for CommandArgumentValue
impl Unpin for CommandArgumentValue
impl UnwindSafe for CommandArgumentValue
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