Enum valence_command::ModifierValue
source · pub enum ModifierValue {
}
Expand description
Used to store keys values for command modifiers. Heavily inspired by serde-value.
Variants§
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Char(char)
String(String)
Unit
Option(Option<Box<ModifierValue>>)
Seq(Vec<ModifierValue>)
Map(BTreeMap<ModifierValue, ModifierValue>)
Trait Implementations§
source§impl Clone for ModifierValue
impl Clone for ModifierValue
source§fn clone(&self) -> ModifierValue
fn clone(&self) -> ModifierValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModifierValue
impl Debug for ModifierValue
source§impl From<&str> for ModifierValue
impl From<&str> for ModifierValue
source§impl From<()> for ModifierValue
impl From<()> for ModifierValue
source§impl<K: Into<ModifierValue>, V: Into<ModifierValue>> From<BTreeMap<K, V>> for ModifierValue
impl<K: Into<ModifierValue>, V: Into<ModifierValue>> From<BTreeMap<K, V>> for ModifierValue
source§impl<K: Into<ModifierValue>, V: Into<ModifierValue>> From<HashMap<K, V>> for ModifierValue
impl<K: Into<ModifierValue>, V: Into<ModifierValue>> From<HashMap<K, V>> for ModifierValue
source§impl From<Option<ModifierValue>> for ModifierValue
impl From<Option<ModifierValue>> for ModifierValue
source§fn from(v: Option<ModifierValue>) -> Self
fn from(v: Option<ModifierValue>) -> Self
Converts to this type from the input type.
source§impl From<String> for ModifierValue
impl From<String> for ModifierValue
source§impl<T: Into<ModifierValue>> From<Vec<T>> for ModifierValue
impl<T: Into<ModifierValue>> From<Vec<T>> for ModifierValue
source§impl From<bool> for ModifierValue
impl From<bool> for ModifierValue
source§impl From<char> for ModifierValue
impl From<char> for ModifierValue
source§impl From<f32> for ModifierValue
impl From<f32> for ModifierValue
source§impl From<f64> for ModifierValue
impl From<f64> for ModifierValue
source§impl From<i16> for ModifierValue
impl From<i16> for ModifierValue
source§impl From<i32> for ModifierValue
impl From<i32> for ModifierValue
source§impl From<i64> for ModifierValue
impl From<i64> for ModifierValue
source§impl From<i8> for ModifierValue
impl From<i8> for ModifierValue
source§impl From<u16> for ModifierValue
impl From<u16> for ModifierValue
source§impl From<u32> for ModifierValue
impl From<u32> for ModifierValue
source§impl From<u64> for ModifierValue
impl From<u64> for ModifierValue
source§impl From<u8> for ModifierValue
impl From<u8> for ModifierValue
source§impl Hash for ModifierValue
impl Hash for ModifierValue
source§impl Ord for ModifierValue
impl Ord for ModifierValue
source§impl PartialEq for ModifierValue
impl PartialEq for ModifierValue
source§impl PartialOrd for ModifierValue
impl PartialOrd for ModifierValue
impl Eq for ModifierValue
Auto Trait Implementations§
impl Freeze for ModifierValue
impl RefUnwindSafe for ModifierValue
impl Send for ModifierValue
impl Sync for ModifierValue
impl Unpin for ModifierValue
impl UnwindSafe for ModifierValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more