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