pub struct ProductBound;Expand description
Cartesian-product upper bound. Sound but very loose.
§Examples
use samkhya_core::lpbound::{ProductBound, UpperBound};
// Empty predicate list: the bound is the unconstrained product.
assert_eq!(ProductBound.ceiling(&[10, 20, 30], &[]), 6000);
// Overflow saturates to u64::MAX rather than wrapping.
assert_eq!(ProductBound.ceiling(&[u64::MAX, 2], &[]), u64::MAX);Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProductBound
impl RefUnwindSafe for ProductBound
impl Send for ProductBound
impl Sync for ProductBound
impl Unpin for ProductBound
impl UnsafeUnpin for ProductBound
impl UnwindSafe for ProductBound
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