pub enum SemanticParamValue<'a> {
Show 17 variants
AbilityRecord(&'a str),
Symbol(&'a str),
ProducedMana(SemanticProducedMana<'a>),
Boolean(bool),
Integer(i32),
Amount(SemanticAmount<'a>),
ZoneList(SmallVec<[&'a str; 4]>),
Selector(SemanticSelector<'a>),
Reference(SemanticSelector<'a>),
SVarReference(SmallVec<[&'a str; 4]>),
Cost(&'a str),
Text(&'a str),
DelimitedList(SmallVec<[&'a str; 4]>),
Transform(SemanticTransform<'a>),
Comparison(SemanticComparison<'a>),
Expression(&'a str),
Raw(&'a str),
}Variants§
AbilityRecord(&'a str)
Symbol(&'a str)
ProducedMana(SemanticProducedMana<'a>)
Boolean(bool)
Integer(i32)
Amount(SemanticAmount<'a>)
ZoneList(SmallVec<[&'a str; 4]>)
Selector(SemanticSelector<'a>)
Reference(SemanticSelector<'a>)
SVarReference(SmallVec<[&'a str; 4]>)
Cost(&'a str)
Text(&'a str)
DelimitedList(SmallVec<[&'a str; 4]>)
Transform(SemanticTransform<'a>)
Comparison(SemanticComparison<'a>)
Expression(&'a str)
Raw(&'a str)
Implementations§
Source§impl SemanticParamValue<'_>
impl SemanticParamValue<'_>
pub fn kind(&self) -> SemanticParamValueKind
Trait Implementations§
Source§impl<'a> Clone for SemanticParamValue<'a>
impl<'a> Clone for SemanticParamValue<'a>
Source§fn clone(&self) -> SemanticParamValue<'a>
fn clone(&self) -> SemanticParamValue<'a>
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<'a> Debug for SemanticParamValue<'a>
impl<'a> Debug for SemanticParamValue<'a>
impl<'a> Eq for SemanticParamValue<'a>
Source§impl<'a> PartialEq for SemanticParamValue<'a>
impl<'a> PartialEq for SemanticParamValue<'a>
Source§fn eq(&self, other: &SemanticParamValue<'a>) -> bool
fn eq(&self, other: &SemanticParamValue<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for SemanticParamValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for SemanticParamValue<'a>
impl<'a> RefUnwindSafe for SemanticParamValue<'a>
impl<'a> Send for SemanticParamValue<'a>
impl<'a> Sync for SemanticParamValue<'a>
impl<'a> Unpin for SemanticParamValue<'a>
impl<'a> UnsafeUnpin for SemanticParamValue<'a>
impl<'a> UnwindSafe for SemanticParamValue<'a>
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