pub struct Clamper32;Expand description
Clamps a distance to half the range of an i32.
It makes sure to clamp to the minimum or maximum representable value in the new bit-size, under the new range-limit conditions.
Implementations§
Auto Trait Implementations§
impl Freeze for Clamper32
impl RefUnwindSafe for Clamper32
impl Send for Clamper32
impl Sync for Clamper32
impl Unpin for Clamper32
impl UnwindSafe for Clamper32
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