pub struct RubyConstantFoldingHelper;Implementations§
Source§impl RubyConstantFoldingHelper
impl RubyConstantFoldingHelper
pub fn fold_add_i64(a: i64, b: i64) -> Option<i64>
pub fn fold_sub_i64(a: i64, b: i64) -> Option<i64>
pub fn fold_mul_i64(a: i64, b: i64) -> Option<i64>
pub fn fold_div_i64(a: i64, b: i64) -> Option<i64>
pub fn fold_add_f64(a: f64, b: f64) -> f64
pub fn fold_mul_f64(a: f64, b: f64) -> f64
pub fn fold_neg_i64(a: i64) -> Option<i64>
pub fn fold_not_bool(a: bool) -> bool
pub fn fold_and_bool(a: bool, b: bool) -> bool
pub fn fold_or_bool(a: bool, b: bool) -> bool
pub fn fold_shl_i64(a: i64, b: u32) -> Option<i64>
pub fn fold_shr_i64(a: i64, b: u32) -> Option<i64>
pub fn fold_rem_i64(a: i64, b: i64) -> Option<i64>
pub fn fold_bitand_i64(a: i64, b: i64) -> i64
pub fn fold_bitor_i64(a: i64, b: i64) -> i64
pub fn fold_bitxor_i64(a: i64, b: i64) -> i64
pub fn fold_bitnot_i64(a: i64) -> i64
Auto Trait Implementations§
impl Freeze for RubyConstantFoldingHelper
impl RefUnwindSafe for RubyConstantFoldingHelper
impl Send for RubyConstantFoldingHelper
impl Sync for RubyConstantFoldingHelper
impl Unpin for RubyConstantFoldingHelper
impl UnsafeUnpin for RubyConstantFoldingHelper
impl UnwindSafe for RubyConstantFoldingHelper
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