Enum flo_ui::PropertyValue
[−]
[src]
pub enum PropertyValue { Nothing, Bool(bool), Int(i32), Float(f64), String(String), }
Represents the value of a property
Variants
Nothing
Bool(bool)
Int(i32)
Float(f64)
String(String)
Methods
impl PropertyValue
[src]
pub fn string(&self) -> Option<String>
[src]
Returns the string value of this property, if it is one
pub fn str(&self) -> Option<&str>
[src]
Returns the string value of this property, if it is one
Trait Implementations
impl Clone for PropertyValue
[src]
fn clone(&self) -> PropertyValue
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for PropertyValue
[src]
fn eq(&self, __arg_0: &PropertyValue) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PropertyValue) -> bool
[src]
This method tests for !=
.
impl Debug for PropertyValue
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more