Struct otter_api_tests::shapelib::RectC[]

pub struct RectC<T> {
    pub corners: [PosC<T>; 2],
}

Fields

corners: [PosC<T>; 2]

Implementations

impl<T> RectC<T> where
    T: Copy

pub fn tl(&self) -> PosC<T>

pub fn br(&self) -> PosC<T>

impl<T> RectC<T>

pub fn contains(&self, p: PosC<T>) -> bool where
    T: PartialOrd<T> + Copy

pub fn overlaps(&self, other: &RectC<T>) -> bool where
    T: PartialOrd<T> + Copy

pub fn empty() -> RectC<T> where
    T: Zero + One + Copy

impl<T> RectC<T> where
    T: Mean + Debug + Copy

pub fn middle(&self) -> PosC<T>

impl<T> RectC<T> where
    T: CheckedArith + Debug + Copy

pub fn size(&self) -> Result<PosC<T>, CoordinateOverflow>

Trait Implementations

impl<T> Clone for RectC<T> where
    T: Clone

impl<T> Copy for RectC<T> where
    T: Copy

impl<T> Debug for RectC<T> where
    T: Debug + Copy

impl<'de, T> Deserialize<'de> for RectC<T> where
    T: Deserialize<'de>, 

impl<T> Eq for RectC<T> where
    T: Eq

impl<T> Hash for RectC<T> where
    T: Hash

impl<T> Ord for RectC<T> where
    T: Ord

impl<T> PartialEq<RectC<T>> for RectC<T> where
    T: PartialEq<T>, 

impl<T> PartialOrd<RectC<T>> for RectC<T> where
    T: PartialOrd<T>, 

impl<T> Serialize for RectC<T> where
    T: Serialize

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OrdExt<T> for T where
    T: Ord + Clone
[src]

impl<T> RuleType for T where
    T: Copy + Debug + Eq + Hash + Ord
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,