Struct otter_api_tests::shapelib::RectShape[][src]

pub struct RectShape {
    pub xy: PosC<f64>,
}

Fields

xy: PosC<f64>

Implementations

impl RectShape[src]

pub fn rect(&self, centre: PosC<i32>) -> Result<RectC<i32>, CoordinateOverflow>[src]

pub fn region(
    &self,
    centre: PosC<i32>
) -> Result<RegionC<i32>, CoordinateOverflow>
[src]

Trait Implementations

impl Clone for RectShape[src]

impl Copy for RectShape[src]

impl Debug for RectShape[src]

impl<'de> Deserialize<'de> for RectShape[src]

impl DynCast<<dyn OutlineTrait + 'static as GetDynCastConfig<dyn OutlineTrait + 'static>>::Config> for RectShape[src]

impl From<RectShape> for Outline[src]

impl OutlineTrait for RectShape[src]

impl Serialize for RectShape[src]

impl TryInto<RectShape> for Outline[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

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> 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>,