[][src]Struct grid_trait::grid2::combinate::neworigin::Grid2NewOrigin

pub struct Grid2NewOrigin<G> where
    G: Grid2,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
{ /* fields omitted */ }

<0, 0> in the inner grid will be new_origin in this grid.

Methods

impl<G> Grid2NewOrigin<G> where
    G: Grid2,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

pub fn new<I>(inner: G, new_origin: I) -> Self where
    I: Into<Vector2<i32>>, 
[src]

pub fn new_origin<I>(&self) -> I where
    I: From<Vector2<i32>>, 
[src]

pub fn adjust_coord<I>(&self, coord: I) -> I where
    I: From<Vector2<i32>> + Into<Vector2<i32>>, 
[src]

Trait Implementations

impl<G> Grid2 for Grid2NewOrigin<G> where
    G: Grid2,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

type Item = <G as Grid2>::Item

type XBound = <<G as Grid2>::XBound as RangeBoundsPlus>::Output

type YBound = <<G as Grid2>::YBound as RangeBoundsPlus>::Output

impl<G> Grid2Get for Grid2NewOrigin<G> where
    G: Grid2 + Grid2Get,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

impl<G> Grid2Mut for Grid2NewOrigin<G> where
    G: Grid2 + Grid2Mut,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

impl<G> Grid2Ref for Grid2NewOrigin<G> where
    G: Grid2 + Grid2Ref,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

impl<G> Grid2Set for Grid2NewOrigin<G> where
    G: Grid2 + Grid2Set,
    <G as Grid2>::XBound: RangeBoundsPlus,
    <G as Grid2>::YBound: RangeBoundsPlus
[src]

Auto Trait Implementations

impl<G> RefUnwindSafe for Grid2NewOrigin<G> where
    G: RefUnwindSafe,
    <<G as Grid2>::XBound as RangeBoundsPlus>::Output: RefUnwindSafe,
    <<G as Grid2>::YBound as RangeBoundsPlus>::Output: RefUnwindSafe

impl<G> Send for Grid2NewOrigin<G> where
    G: Send,
    <<G as Grid2>::XBound as RangeBoundsPlus>::Output: Send,
    <<G as Grid2>::YBound as RangeBoundsPlus>::Output: Send

impl<G> Sync for Grid2NewOrigin<G> where
    G: Sync,
    <<G as Grid2>::XBound as RangeBoundsPlus>::Output: Sync,
    <<G as Grid2>::YBound as RangeBoundsPlus>::Output: Sync

impl<G> Unpin for Grid2NewOrigin<G> where
    G: Unpin,
    <<G as Grid2>::XBound as RangeBoundsPlus>::Output: Unpin,
    <<G as Grid2>::YBound as RangeBoundsPlus>::Output: Unpin

impl<G> UnwindSafe for Grid2NewOrigin<G> where
    G: UnwindSafe,
    <<G as Grid2>::XBound as RangeBoundsPlus>::Output: UnwindSafe,
    <<G as Grid2>::YBound as RangeBoundsPlus>::Output: 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> From<T> for T[src]

impl<T> Grid2 for T where
    T: Deref,
    <T as Deref>::Target: Grid2
[src]

type Item = <<T as Deref>::Target as Grid2>::Item

type XBound = <<T as Deref>::Target as Grid2>::XBound

type YBound = <<T as Deref>::Target as Grid2>::YBound

impl<T> Grid2Get for T where
    T: Deref,
    <T as Deref>::Target: Grid2Get
[src]

impl<T> Grid2Mut for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid2Mut
[src]

impl<T> Grid2Ref for T where
    T: Deref,
    <T as Deref>::Target: Grid2Ref
[src]

impl<T> Grid2Set for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid2Set
[src]

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

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.