pub struct OSConstantFoldingHelper;Implementations§
Source§impl OSConstantFoldingHelper
impl OSConstantFoldingHelper
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 OSConstantFoldingHelper
impl RefUnwindSafe for OSConstantFoldingHelper
impl Send for OSConstantFoldingHelper
impl Sync for OSConstantFoldingHelper
impl Unpin for OSConstantFoldingHelper
impl UnsafeUnpin for OSConstantFoldingHelper
impl UnwindSafe for OSConstantFoldingHelper
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