Variants
data type description Value::Language(Language) Stores a Language value Value::String(String) Stores a String value Value::Float(f64) Stores a f64 floating value Value::Integer(i64) Stores a i64 number value Value::Bool(Bool) Stores a boolean value Value::Ident(Ident) Stores a Ident value Value::Selection(Selection) Stores a Selection value Value::Version(Version) Stores a version value Value::List(List) Stores a list value Value::Reference(Reference) Stores a reference value Value::Color(Color) Stores a color value Value::Table(Table) Stores a complete table
Example
// Create a Value with String typ let val_s = Value::String("Hello World"); // Check for the string match val_s { Value::String(s) => println!("String: {}", s), _ => println!("No String value") }