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