Struct otter_api_tests::shapelib::PosC[]

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

Fields

coords: [T; 2]

Implementations

impl<T> PosC<T>

pub const fn new(x: T, y: T) -> PosC<T>

pub fn both(v: T) -> PosC<T> where
    T: Copy

pub fn zero() -> PosC<T> where
    T: Zero + Copy

pub fn len2(self) -> Result<f64, CoordinateOverflow> where
    PosC<T>: PosPromote

pub fn len(self) -> Result<f64, CoordinateOverflow> where
    PosC<T>: PosPromote

impl<T> PosC<T> where
    T: Copy

pub fn x(self) -> T

pub fn y(self) -> T

impl<T> PosC<T>

pub fn from_iter<I>(i: I) -> Result<PosC<T>, PosCFromIteratorError> where
    I: Iterator<Item = T>, 

impl<T> PosC<T> where
    T: Debug

pub fn from_iter_2<I>(i: I) -> PosC<T> where
    I: Iterator<Item = T>, 

impl<T> PosC<T> where
    T: Debug

pub fn try_from_iter_2<E, I>(i: I) -> Result<PosC<T>, E> where
    E: Debug,
    I: Iterator<Item = Result<T, E>>, 

Panics if the iterator doesn’t yield exactly 2 elements

impl<T> PosC<T> where
    T: Copy + Clone + Debug

pub fn map<U, F>(self, f: F) -> PosC<U> where
    U: Copy + Clone + Debug,
    F: FnMut(T) -> U, 

impl<T> PosC<T> where
    T: Copy + Clone + Debug

pub fn try_map<E, U, F>(self, f: F) -> Result<PosC<U>, E> where
    U: Copy + Clone + Debug,
    E: Debug,
    F: FnMut(T) -> Result<U, E>, 

Trait Implementations

impl<T> Add<PosC<T>> for PosC<T> where
    T: CheckedArith

type Output = Result<PosC<T>, CoordinateOverflow>

The resulting type after applying the + operator.

impl ClampTable for PosC<i32>[src]

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

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

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

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

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

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

impl<T> Mean for PosC<T> where
    T: Mean + Debug

impl<S, T> Mul<S> for PosC<T> where
    S: 'static + Copy + Debug + Clone,
    T: CheckedArithMul<S>, 

type Output = Result<PosC<T>, CoordinateOverflow>

The resulting type after applying the * operator.

impl<T> Neg for PosC<T> where
    T: CheckedArith

type Output = Result<PosC<T>, CoordinateOverflow>

The resulting type after applying the - operator.

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

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

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

impl<T> PosPromote for PosC<T> where
    T: Into<f64> + Copy + Debug

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

impl<T> StructuralEq for PosC<T>

impl<T> StructuralPartialEq for PosC<T>

impl<T> Sub<PosC<T>> for PosC<T> where
    T: CheckedArith

type Output = Result<PosC<T>, CoordinateOverflow>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T> RefUnwindSafe for PosC<T> where
    T: RefUnwindSafe

impl<T> Send for PosC<T> where
    T: Send

impl<T> Sync for PosC<T> where
    T: Sync

impl<T> Unpin for PosC<T> where
    T: Unpin

impl<T> UnwindSafe for PosC<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>,