Struct otter_base::geometry::RectC
source · [−]Fields
corners: [PosC<T>; 2]
Implementations
sourceimpl<T> RectC<T> where
T: CheckedArith + Debug + Copy,
impl<T> RectC<T> where
T: CheckedArith + Debug + Copy,
pub fn size(&self) -> Result<PosC<T>, CoordinateOverflow>
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for RectC<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RectC<T> where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: Ord> Ord for RectC<T>
impl<T: Ord> Ord for RectC<T>
sourceimpl<T: PartialOrd> PartialOrd<RectC<T>> for RectC<T>
impl<T: PartialOrd> PartialOrd<RectC<T>> for RectC<T>
sourcefn partial_cmp(&self, other: &RectC<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &RectC<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Copy> Copy for RectC<T>
impl<T: Eq> Eq for RectC<T>
impl<T> StructuralEq for RectC<T>
impl<T> StructuralPartialEq for RectC<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for RectC<T> where
T: RefUnwindSafe,
impl<T> Send for RectC<T> where
T: Send,
impl<T> Sync for RectC<T> where
T: Sync,
impl<T> Unpin for RectC<T> where
T: Unpin,
impl<T> UnwindSafe for RectC<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more