pub enum MarkupValue {
Integer(u32),
Float(f32),
String(String),
Bool(bool),
}Expand description
A value associated with a markup name.
You do not create instances of this struct yourself. It is created
by objects that can parse markup, such as Dialogue
Variants§
Integer(u32)
An integer value. Note that while Yarn variables make no distinction between integers and floats, markup values do.
Float(f32)
A floating-point value. Note that while Yarn variables make no distinction between integers and floats, markup values do.
String(String)
A string value.
Bool(bool)
A boolean value.
Implementations§
Trait Implementations§
Source§impl Clone for MarkupValue
impl Clone for MarkupValue
Source§impl Debug for MarkupValue
impl Debug for MarkupValue
Source§impl Display for MarkupValue
impl Display for MarkupValue
Source§impl From<&str> for MarkupValue
impl From<&str> for MarkupValue
Source§impl From<String> for MarkupValue
impl From<String> for MarkupValue
Source§impl From<bool> for MarkupValue
impl From<bool> for MarkupValue
Source§impl From<f32> for MarkupValue
impl From<f32> for MarkupValue
Source§impl From<u32> for MarkupValue
impl From<u32> for MarkupValue
Source§impl PartialEq for MarkupValue
impl PartialEq for MarkupValue
impl StructuralPartialEq for MarkupValue
Auto Trait Implementations§
impl Freeze for MarkupValue
impl RefUnwindSafe for MarkupValue
impl Send for MarkupValue
impl Sync for MarkupValue
impl Unpin for MarkupValue
impl UnsafeUnpin for MarkupValue
impl UnwindSafe for MarkupValue
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