pub enum TunableValue {
Bool(bool),
Int(i64),
Float(f32),
Vector([f32; 3]),
}Variants§
Implementations§
Source§impl TunableValue
impl TunableValue
Trait Implementations§
Source§impl Clone for TunableValue
impl Clone for TunableValue
Source§fn clone(&self) -> TunableValue
fn clone(&self) -> TunableValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TunableValue
impl Debug for TunableValue
Source§impl<'de> Deserialize<'de> for TunableValue
impl<'de> Deserialize<'de> for TunableValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TunableValue
impl Display for TunableValue
Source§impl PartialEq for TunableValue
impl PartialEq for TunableValue
Source§fn eq(&self, other: &TunableValue) -> bool
fn eq(&self, other: &TunableValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TunableValue
impl Serialize for TunableValue
impl Copy for TunableValue
impl StructuralPartialEq for TunableValue
Auto Trait Implementations§
impl Freeze for TunableValue
impl RefUnwindSafe for TunableValue
impl Send for TunableValue
impl Sync for TunableValue
impl Unpin for TunableValue
impl UnsafeUnpin for TunableValue
impl UnwindSafe for TunableValue
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