pub enum Value {
AssocArray(AssocArray),
Text(Rc<[u8]>),
Number(f64),
Path(Rc<Path>),
PathGlob(PathGlob),
FileSize {
fs: FileSize,
precision: u8,
},
Regex(Regex),
}Variants§
AssocArray(AssocArray)
Text(Rc<[u8]>)
Number(f64)
Path(Rc<Path>)
PathGlob(PathGlob)
FileSize
Regex(Regex)
Implementations§
Source§impl Value
impl Value
pub fn is_truthy(&self) -> bool
pub fn matches(&self, rhs: &Self) -> PlayResult<bool>
pub fn run( &self, ctx: &mut PlayContext<'_>, rctx: RunContext, ) -> PlayResult<Self>
pub fn negate(&self) -> PlayResult<Self>
pub fn add(&self, rhs: &Self) -> PlayResult<Self>
pub fn subtract(&self, rhs: &Self) -> PlayResult<Self>
pub fn multiply(&self, rhs: &Self) -> PlayResult<Self>
pub fn divide(&self, rhs: &Self) -> PlayResult<Self>
pub fn modulo(&self, rhs: &Self) -> PlayResult<Self>
pub fn compare(&self, rhs: &Self) -> PlayResult<Ordering>
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
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