pub enum ProjectParamValue {
Float(f32),
FloatRanged {
val: f32,
min: f32,
max: f32,
},
Int(i32),
IntRanged {
val: i32,
min: i32,
max: i32,
},
Bool(bool),
}Variants§
Implementations§
Source§impl ProjectParamValue
impl ProjectParamValue
pub fn get_f32(&self) -> Result<f32>
pub fn set_f32(&mut self, new_val: f32)
pub fn get_i32(&self) -> Result<i32>
pub fn set_i32(&mut self, new_val: i32)
pub fn get_bool(&self) -> Result<bool>
pub fn set_bool(&mut self, new_val: bool)
pub fn type_name(&self) -> String
pub fn value_as_string(&self) -> String
Trait Implementations§
Source§impl Clone for ProjectParamValue
impl Clone for ProjectParamValue
Source§fn clone(&self) -> ProjectParamValue
fn clone(&self) -> ProjectParamValue
Returns a duplicate 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 ProjectParamValue
impl Debug for ProjectParamValue
Source§impl<'de> Deserialize<'de> for ProjectParamValue
impl<'de> Deserialize<'de> for ProjectParamValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectParamValue
impl PartialEq for ProjectParamValue
Source§impl Serialize for ProjectParamValue
impl Serialize for ProjectParamValue
impl StructuralPartialEq for ProjectParamValue
Auto Trait Implementations§
impl Freeze for ProjectParamValue
impl RefUnwindSafe for ProjectParamValue
impl Send for ProjectParamValue
impl Sync for ProjectParamValue
impl Unpin for ProjectParamValue
impl UnwindSafe for ProjectParamValue
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more