pub struct IncrEx {
pub by: Num,
pub saturate: bool,
pub lower: Option<Num>,
pub upper: Option<Num>,
pub expire: IncrExpire,
}Expand description
Everything INCREX can be asked to do beyond adding one.
Fields§
§by: NumBYINT n or BYFLOAT f. One by default.
saturate: boolSATURATE: clamp to the bound instead of refusing.
lower: Option<Num>LBOUND. The type’s own minimum when absent.
upper: Option<Num>UBOUND. The type’s own maximum when absent.
expire: IncrExpireThe expiration options.
Implementations§
Source§impl IncrEx
impl IncrEx
Sourcepub const fn saturating(self) -> IncrEx
pub const fn saturating(self) -> IncrEx
This, clamping instead of refusing.
Sourcepub const fn between(self, lower: Option<Num>, upper: Option<Num>) -> IncrEx
pub const fn between(self, lower: Option<Num>, upper: Option<Num>) -> IncrEx
This, held between two bounds.
Sourcepub const fn expiring(self, expire: IncrExpire) -> IncrEx
pub const fn expiring(self, expire: IncrExpire) -> IncrEx
This, with something to say about the deadline.
Trait Implementations§
impl Copy for IncrEx
impl StructuralPartialEq for IncrEx
Auto Trait Implementations§
impl Freeze for IncrEx
impl RefUnwindSafe for IncrEx
impl Send for IncrEx
impl Sync for IncrEx
impl Unpin for IncrEx
impl UnsafeUnpin for IncrEx
impl UnwindSafe for IncrEx
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