[−][src]Struct glyph_brush::Rectangle
A rectangle, with top-left corner at min, and bottom-right corner at max.
Fields
min: [N; 2]
max: [N; 2]
Implementations
impl<N> Rectangle<N> where
N: Copy + Sub<N, Output = N>,
[src]
N: Copy + Sub<N, Output = N>,
Trait Implementations
impl<N> Clone for Rectangle<N> where
N: Clone,
[src]
N: Clone,
impl<N> Copy for Rectangle<N> where
N: Copy,
[src]
N: Copy,
impl<N> Debug for Rectangle<N> where
N: Debug,
[src]
N: Debug,
impl<N> Default for Rectangle<N> where
N: Default,
[src]
N: Default,
impl<N> Eq for Rectangle<N> where
N: Eq,
[src]
N: Eq,
impl<N> Hash for Rectangle<N> where
N: Hash,
[src]
N: Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<N> Ord for Rectangle<N> where
N: Ord,
[src]
N: Ord,
pub fn cmp(&self, other: &Rectangle<N>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<N> PartialEq<Rectangle<N>> for Rectangle<N> where
N: PartialEq<N>,
[src]
N: PartialEq<N>,
pub fn eq(&self, other: &Rectangle<N>) -> bool
[src]
pub fn ne(&self, other: &Rectangle<N>) -> bool
[src]
impl<N> PartialOrd<Rectangle<N>> for Rectangle<N> where
N: PartialOrd<N>,
[src]
N: PartialOrd<N>,
pub fn partial_cmp(&self, other: &Rectangle<N>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Rectangle<N>) -> bool
[src]
pub fn le(&self, other: &Rectangle<N>) -> bool
[src]
pub fn gt(&self, other: &Rectangle<N>) -> bool
[src]
pub fn ge(&self, other: &Rectangle<N>) -> bool
[src]
impl<N> StructuralEq for Rectangle<N>
[src]
impl<N> StructuralPartialEq for Rectangle<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Rectangle<N> where
N: RefUnwindSafe,
[src]
N: RefUnwindSafe,
impl<N> Send for Rectangle<N> where
N: Send,
[src]
N: Send,
impl<N> Sync for Rectangle<N> where
N: Sync,
[src]
N: Sync,
impl<N> Unpin for Rectangle<N> where
N: Unpin,
[src]
N: Unpin,
impl<N> UnwindSafe for Rectangle<N> where
N: UnwindSafe,
[src]
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,