[−][src]Struct gee::Rect
Fields
left: T
top: T
right: T
bottom: T
Methods
impl<T> Rect<T>
[src]
impl<T> Rect<T>
impl<T: Add<Output = T> + Copy> Rect<T>
[src]
impl<T: Add<Output = T> + Copy> Rect<T>
pub fn from_point_size(origin: Point<T>, size: Size<T>) -> Rect<T> | [src] |
impl<T: Copy> Rect<T>
[src]
impl<T: Copy> Rect<T>
pub fn origin(&self) -> Point<T> | [src] |
pub fn top_left(&self) -> Point<T> | [src] |
pub fn top_right(&self) -> Point<T> | [src] |
pub fn bottom_left(&self) -> Point<T> | [src] |
pub fn bottom_right(&self) -> Point<T> | [src] |
impl<T: Copy + Sub> Rect<T>
[src]
impl<T: Copy + Sub> Rect<T>
impl<T: PartialOrd> Rect<T>
[src]
impl<T: PartialOrd> Rect<T>
impl<T: Zero> Rect<T>
[src]
impl<T: Zero> Rect<T>
impl<T: PartialEq> Rect<T>
[src]
impl<T: PartialEq> Rect<T>
impl<T: Copy + PartialOrd + Zero> Rect<T>
[src]
impl<T: Copy + PartialOrd + Zero> Rect<T>
pub fn from_points_iter<I>(points: I) -> Self where | [src] |
impl<T: Ord + Copy> Rect<T>
[src]
impl<T: Ord + Copy> Rect<T>
pub fn from_points(a: Point<T>, b: Point<T>) -> Self | [src] |
impl<T: Copy + One + Add<Output = U>, U: Div> Rect<T>
[src]
impl<T: Copy + One + Add<Output = U>, U: Div> Rect<T>
pub fn center_x(&self) -> U::Output | [src] |
pub fn center_y(&self) -> U::Output | [src] |
pub fn center(&self) -> Point<U::Output> | [src] |
impl<T: Copy + Ord + One + Add<Output = U>, U: Div<Output = T>> Rect<T>
[src]
impl<T: Copy + Ord + One + Add<Output = U>, U: Div<Output = T>> Rect<T>
pub fn top_center(&self) -> Point<T> | [src] |
pub fn bottom_center(&self) -> Point<T> | [src] |
pub fn center_left(&self) -> Point<T> | [src] |
pub fn center_right(&self) -> Point<T> | [src] |
impl<T: Ord + Copy> Rect<T>
[src]
impl<T: Ord + Copy> Rect<T>
pub fn intersection(&self, other: &Self) -> Option<Self> | [src] |
pub fn union(&self, other: &Self) -> Self | [src] |
Trait Implementations
impl<T: PartialEq> PartialEq<Rect<T>> for Rect<T>
[src]
impl<T: PartialEq> PartialEq<Rect<T>> for Rect<T>
impl<T: Eq> Eq for Rect<T>
[src]
impl<T: Eq> Eq for Rect<T>
impl<T: PartialOrd> PartialOrd<Rect<T>> for Rect<T>
[src]
impl<T: PartialOrd> PartialOrd<Rect<T>> for Rect<T>
fn partial_cmp(&self, other: &Rect<T>) -> Option<Ordering> | [src] |
fn lt(&self, other: &Rect<T>) -> bool | [src] |
fn le(&self, other: &Rect<T>) -> bool | [src] |
fn gt(&self, other: &Rect<T>) -> bool | [src] |
fn ge(&self, other: &Rect<T>) -> bool | [src] |
impl<T: Ord> Ord for Rect<T>
[src]
impl<T: Ord> Ord for Rect<T>
fn cmp(&self, other: &Rect<T>) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl<T: Clone> Clone for Rect<T>
[src]
impl<T: Clone> Clone for Rect<T>
fn clone(&self) -> Rect<T> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<T: Default> Default for Rect<T>
[src]
impl<T: Default> Default for Rect<T>
impl<T: Copy> Copy for Rect<T>
[src]
impl<T: Copy> Copy for Rect<T>
impl<T: AddAssign<RHS>, RHS: Copy> AddAssign<Vector<RHS>> for Rect<T>
[src]
impl<T: AddAssign<RHS>, RHS: Copy> AddAssign<Vector<RHS>> for Rect<T>
fn add_assign(&mut self, rhs: Vector<RHS>) | [src] |
impl<T: Debug> Debug for Rect<T>
[src]
impl<T: Debug> Debug for Rect<T>
impl<T: Hash> Hash for Rect<T>
[src]
impl<T: Hash> Hash for Rect<T>
fn hash<__HT: Hasher>(&self, state: &mut __HT) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Add<RHS>, RHS: Copy> Add<Vector<RHS>> for Rect<T>
[src]
impl<T: Add<RHS>, RHS: Copy> Add<Vector<RHS>> for Rect<T>
type Output = Rect<T::Output>
The resulting type after applying the +
operator.
fn add(self, rhs: Vector<RHS>) -> Self::Output | [src] |
impl<T: Mul<RHS>, RHS: Copy> Mul<RHS> for Rect<T>
[src]
impl<T: Mul<RHS>, RHS: Copy> Mul<RHS> for Rect<T>
type Output = Rect<T::Output>
The resulting type after applying the *
operator.
fn mul(self, rhs: RHS) -> Self::Output | [src] |
impl<T: MulAssign<RHS>, RHS: Copy> MulAssign<RHS> for Rect<T>
[src]
impl<T: MulAssign<RHS>, RHS: Copy> MulAssign<RHS> for Rect<T>
fn mul_assign(&mut self, rhs: RHS) | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |