pub struct NumberTypes { /* private fields */ }Expand description
Per-function static types: which local indices are proven numbers (f64) or
strict booleans (a TAG_TRUE/TAG_FALSE singleton).
Implementations§
Source§impl NumberTypes
impl NumberTypes
Sourcepub fn local_is_num(&self, func: &str, local: usize) -> bool
pub fn local_is_num(&self, func: &str, local: usize) -> bool
Whether local in function func is statically known to be a number.
Sourcepub fn operand_is_num(&self, func: &str, op: &Operand) -> bool
pub fn operand_is_num(&self, func: &str, op: &Operand) -> bool
Whether op evaluates to a number inside function func.
Sourcepub fn operand_is_bool(&self, func: &str, op: &Operand) -> bool
pub fn operand_is_bool(&self, func: &str, op: &Operand) -> bool
Whether op is a strict boolean inside function func (so a branch can
test it directly against TAG_TRUE rather than running full truthiness).
Trait Implementations§
Source§impl Default for NumberTypes
impl Default for NumberTypes
Source§fn default() -> NumberTypes
fn default() -> NumberTypes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NumberTypes
impl RefUnwindSafe for NumberTypes
impl Send for NumberTypes
impl Sync for NumberTypes
impl Unpin for NumberTypes
impl UnsafeUnpin for NumberTypes
impl UnwindSafe for NumberTypes
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