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