[][src]Struct grid_trait::grid3::combinate::neworigin::Grid3NewOrigin

pub struct Grid3NewOrigin<G> where
    G: Grid3,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
{ /* fields omitted */ }

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

Methods

impl<G> Grid3NewOrigin<G> where
    G: Grid3,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

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

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

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

Trait Implementations

impl<G> Grid3 for Grid3NewOrigin<G> where
    G: Grid3,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

type Item = <G as Grid3>::Item

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

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

type ZBound = <<G as Grid3>::ZBound as RangeBoundsPlus>::Output

impl<G> Grid3Get for Grid3NewOrigin<G> where
    G: Grid3 + Grid3Get,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

impl<G> Grid3Mut for Grid3NewOrigin<G> where
    G: Grid3 + Grid3Mut,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

impl<G> Grid3Ref for Grid3NewOrigin<G> where
    G: Grid3 + Grid3Ref,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

impl<G> Grid3Set for Grid3NewOrigin<G> where
    G: Grid3 + Grid3Set,
    <G as Grid3>::XBound: RangeBoundsPlus,
    <G as Grid3>::YBound: RangeBoundsPlus,
    <G as Grid3>::ZBound: RangeBoundsPlus
[src]

Auto Trait Implementations

impl<G> RefUnwindSafe for Grid3NewOrigin<G> where
    G: RefUnwindSafe,
    <<G as Grid3>::XBound as RangeBoundsPlus>::Output: RefUnwindSafe,
    <<G as Grid3>::YBound as RangeBoundsPlus>::Output: RefUnwindSafe,
    <<G as Grid3>::ZBound as RangeBoundsPlus>::Output: RefUnwindSafe

impl<G> Send for Grid3NewOrigin<G> where
    G: Send,
    <<G as Grid3>::XBound as RangeBoundsPlus>::Output: Send,
    <<G as Grid3>::YBound as RangeBoundsPlus>::Output: Send,
    <<G as Grid3>::ZBound as RangeBoundsPlus>::Output: Send

impl<G> Sync for Grid3NewOrigin<G> where
    G: Sync,
    <<G as Grid3>::XBound as RangeBoundsPlus>::Output: Sync,
    <<G as Grid3>::YBound as RangeBoundsPlus>::Output: Sync,
    <<G as Grid3>::ZBound as RangeBoundsPlus>::Output: Sync

impl<G> Unpin for Grid3NewOrigin<G> where
    G: Unpin,
    <<G as Grid3>::XBound as RangeBoundsPlus>::Output: Unpin,
    <<G as Grid3>::YBound as RangeBoundsPlus>::Output: Unpin,
    <<G as Grid3>::ZBound as RangeBoundsPlus>::Output: Unpin

impl<G> UnwindSafe for Grid3NewOrigin<G> where
    G: UnwindSafe,
    <<G as Grid3>::XBound as RangeBoundsPlus>::Output: UnwindSafe,
    <<G as Grid3>::YBound as RangeBoundsPlus>::Output: UnwindSafe,
    <<G as Grid3>::ZBound 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> Grid3 for T where
    T: Deref,
    <T as Deref>::Target: Grid3
[src]

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

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

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

type ZBound = <<T as Deref>::Target as Grid3>::ZBound

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

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

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

impl<T> Grid3Set for T where
    T: Deref + DerefMut,
    <T as Deref>::Target: Grid3Set
[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.