Skip to main content

Pipeline

Struct Pipeline 

Source
pub struct Pipeline {
    pub steps: Vec<Pj>,
}
Expand description

A sequence of crate::pj::Pj steps applied in order (forward) or in reverse (inverse). The 4D methods are the true entry points; the 2D methods wrap through them.

Fields§

§steps: Vec<Pj>

The ordered steps. Each step honors its own inverted flag.

Trait Implementations§

Source§

impl Debug for Pipeline

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Operation for Pipeline

Source§

fn forward_4d(&self, c: Coord) -> ProjResult<Coord>

Apply the 4D forward operation on a full Coord (with time). Read more
Source§

fn inverse_4d(&self, c: Coord) -> ProjResult<Coord>

Apply the 4D inverse operation on a full Coord (with time). Read more
Source§

fn forward_2d(&self, lp: Lp) -> ProjResult<Xy>

Apply the 2D forward operation, mapping geodetic Lp to projected Xy. Read more
Source§

fn inverse_2d(&self, xy: Xy) -> ProjResult<Lp>

Apply the 2D inverse operation, mapping projected Xy back to geodetic Lp. Read more
Source§

fn forward_3d(&self, lpz: Lpz) -> Result<Xyz, ProjError>

Apply the 3D forward operation, mapping geodetic Lpz to Cartesian Xyz. Read more
Source§

fn inverse_3d(&self, xyz: Xyz) -> Result<Lpz, ProjError>

Apply the 3D inverse operation, mapping Cartesian Xyz back to geodetic Lpz. Read more
Source§

fn has_inverse(&self) -> bool

Report whether an inverse operation is available (default true).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.