pub struct Clamper16;Expand description
Clamps a distance to half the range of an i16.
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 Clamper16
impl RefUnwindSafe for Clamper16
impl Send for Clamper16
impl Sync for Clamper16
impl Unpin for Clamper16
impl UnwindSafe for Clamper16
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