#[repr(transparent)]pub struct Clamp<C>(pub C);Expand description
Clamps the inner coordinate (or coord component) in grid space.
Tuple Fields§
§0: CTrait Implementations§
Source§impl CoordComponent for Clamp<u8>
impl CoordComponent for Clamp<u8>
Source§impl CoordComponent for Clamp<u16>
impl CoordComponent for Clamp<u16>
Source§impl CoordComponent for Clamp<u32>
impl CoordComponent for Clamp<u32>
Source§impl CoordComponent for Clamp<u64>
impl CoordComponent for Clamp<u64>
Source§impl CoordComponent for Clamp<usize>
impl CoordComponent for Clamp<usize>
Source§impl CoordComponent for Clamp<i8>
impl CoordComponent for Clamp<i8>
Source§impl CoordComponent for Clamp<i16>
impl CoordComponent for Clamp<i16>
Source§impl CoordComponent for Clamp<i32>
impl CoordComponent for Clamp<i32>
Source§impl CoordComponent for Clamp<i64>
impl CoordComponent for Clamp<i64>
Source§impl CoordComponent for Clamp<isize>
impl CoordComponent for Clamp<isize>
impl<C: Copy> Copy for Clamp<C>
impl<C: Eq> Eq for Clamp<C>
Source§impl<C: Ord> Ord for Clamp<C>
impl<C: Ord> Ord for Clamp<C>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<C: PartialOrd> PartialOrd for Clamp<C>
impl<C: PartialOrd> PartialOrd for Clamp<C>
impl<C: PartialEq> StructuralPartialEq for Clamp<C>
Auto Trait Implementations§
impl<C> Forget for Clamp<C>
impl<C> Freeze for Clamp<C>where
C: Freeze,
impl<C> RefUnwindSafe for Clamp<C>where
C: RefUnwindSafe,
impl<C> Send for Clamp<C>where
C: Send,
impl<C> Sync for Clamp<C>where
C: Sync,
impl<C> Unpin for Clamp<C>where
C: Unpin,
impl<C> UnsafeUnpin for Clamp<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Clamp<C>where
C: UnwindSafe,
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