[−][src]Struct grid_trait::grid2::combinate::enumap::Grid2EnuMap
Methods
impl<G, F, T, I> Grid2EnuMap<G, F, T, I> where
G: Grid2,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
[src]
G: Grid2,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
Trait Implementations
impl<G, F, T, I> Grid2 for Grid2EnuMap<G, F, T, I> where
G: Grid2,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
[src]
G: Grid2,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
type Item = T
type XBound = <G as Grid2>::XBound
type YBound = <G as Grid2>::YBound
fn x_bound(&self) -> Self::XBound
[src]
fn y_bound(&self) -> Self::YBound
[src]
fn in_bounds<I>(&self, coord: I) -> bool where
I: Into<Vector2<i32>>,
[src]
I: Into<Vector2<i32>>,
fn map<F, T>(self, func: F) -> Grid2Map<Self, F, T> where
Self: Sized,
F: Fn(Self::Item) -> T,
[src]
Self: Sized,
F: Fn(Self::Item) -> T,
fn enumap<I, F, T>(self, func: F) -> Grid2EnuMap<Self, F, T, I> where
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I, Self::Item) -> T,
[src]
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I, Self::Item) -> T,
fn flatten<I>(self, stride: I) -> Grid2Flat<Self> where
Self: Sized,
Self::Item: Grid2,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
I: Into<Vector2<i32>>,
[src]
Self: Sized,
Self::Item: Grid2,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
I: Into<Vector2<i32>>,
fn new_origin<I>(self, new_origin: I) -> Grid2NewOrigin<Self> where
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
I: Into<Vector2<i32>>,
[src]
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
I: Into<Vector2<i32>>,
fn oob_handler<I, F>(self, handler: F) -> Grid2OobHandler<Self, I, F> where
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I) -> Self::Item,
[src]
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I) -> Self::Item,
fn subview<X, Y>(self, new_x: X, new_y: Y) -> Grid2Slice<Self, X, Y> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
[src]
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
fn try_subview<X, Y>(
self,
new_x: X,
new_y: Y
) -> Result<Grid2Slice<Self, X, Y>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
[src]
self,
new_x: X,
new_y: Y
) -> Result<Grid2Slice<Self, X, Y>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
fn subview_0to(
self,
new_x_len: i32,
new_y_len: i32
) -> Grid2Slice<Self, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32
) -> Grid2Slice<Self, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
fn try_subview_0to(
self,
new_x_len: i32,
new_y_len: i32
) -> Result<Grid2Slice<Self, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32
) -> Result<Grid2Slice<Self, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
fn wrapping(self) -> Grid2Wrapping<Self> where
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
[src]
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
fn collect(&self) -> ArrayGrid2<Self::Item> where
Self: Grid2Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
[src]
Self: Grid2Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
impl<G, F, T, I> Grid2Get for Grid2EnuMap<G, F, T, I> where
G: Grid2 + Grid2Get,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
[src]
G: Grid2 + Grid2Get,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
fn get<C>(&self, coord: C) -> Self::Item where
C: Into<Vector2<i32>>,
[src]
C: Into<Vector2<i32>>,
fn try_get<I>(&self, coord: I) -> Option<Self::Item> where
I: Into<Vector2<i32>>,
[src]
I: Into<Vector2<i32>>,
impl<G, F, T, I> Grid2Len for Grid2EnuMap<G, F, T, I> where
G: Grid2 + Grid2Len,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
[src]
G: Grid2 + Grid2Len,
I: From<Vector2<i32>>,
F: Fn(I, <G as Grid2>::Item) -> T,
Auto Trait Implementations
impl<G, F, T, I> RefUnwindSafe for Grid2EnuMap<G, F, T, I> where
F: RefUnwindSafe,
G: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F, T, I> Send for Grid2EnuMap<G, F, T, I> where
F: Send,
G: Send,
F: Send,
G: Send,
impl<G, F, T, I> Sync for Grid2EnuMap<G, F, T, I> where
F: Sync,
G: Sync,
F: Sync,
G: Sync,
impl<G, F, T, I> Unpin for Grid2EnuMap<G, F, T, I> where
F: Unpin,
G: Unpin,
F: Unpin,
G: Unpin,
impl<G, F, T, I> UnwindSafe for Grid2EnuMap<G, F, T, I> where
F: UnwindSafe,
G: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Grid2 for T where
T: Deref,
<T as Deref>::Target: Grid2,
[src]
T: Deref,
<T as Deref>::Target: Grid2,
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
fn x_bound(&Self) -> <T as Grid2>::XBound
[src]
fn y_bound(&Self) -> <T as Grid2>::YBound
[src]
fn in_bounds<I>(&self, coord: I) -> bool where
I: Into<Vector2<i32>>,
[src]
I: Into<Vector2<i32>>,
fn map<F, T>(self, func: F) -> Grid2Map<Self, F, T> where
Self: Sized,
F: Fn(Self::Item) -> T,
[src]
Self: Sized,
F: Fn(Self::Item) -> T,
fn enumap<I, F, T>(self, func: F) -> Grid2EnuMap<Self, F, T, I> where
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I, Self::Item) -> T,
[src]
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I, Self::Item) -> T,
fn flatten<I>(self, stride: I) -> Grid2Flat<Self> where
Self: Sized,
Self::Item: Grid2,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
I: Into<Vector2<i32>>,
[src]
Self: Sized,
Self::Item: Grid2,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
I: Into<Vector2<i32>>,
fn new_origin<I>(self, new_origin: I) -> Grid2NewOrigin<Self> where
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
I: Into<Vector2<i32>>,
[src]
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
I: Into<Vector2<i32>>,
fn oob_handler<I, F>(self, handler: F) -> Grid2OobHandler<Self, I, F> where
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I) -> Self::Item,
[src]
Self: Sized,
I: From<Vector2<i32>>,
F: Fn(I) -> Self::Item,
fn subview<X, Y>(self, new_x: X, new_y: Y) -> Grid2Slice<Self, X, Y> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
[src]
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
fn try_subview<X, Y>(
self,
new_x: X,
new_y: Y
) -> Result<Grid2Slice<Self, X, Y>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
[src]
self,
new_x: X,
new_y: Y
) -> Result<Grid2Slice<Self, X, Y>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
fn subview_0to(
self,
new_x_len: i32,
new_y_len: i32
) -> Grid2Slice<Self, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32
) -> Grid2Slice<Self, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
fn try_subview_0to(
self,
new_x_len: i32,
new_y_len: i32
) -> Result<Grid2Slice<Self, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32
) -> Result<Grid2Slice<Self, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
fn wrapping(self) -> Grid2Wrapping<Self> where
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
[src]
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
fn collect(&self) -> ArrayGrid2<Self::Item> where
Self: Grid2Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
[src]
Self: Grid2Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
impl<T> Grid2Get for T where
T: Deref,
<T as Deref>::Target: Grid2Get,
[src]
T: Deref,
<T as Deref>::Target: Grid2Get,
fn get<I>(&Self, I) -> <T as Grid2>::Item where
I: Into<Vector2<i32>>,
[src]
I: Into<Vector2<i32>>,
fn try_get<I>(&self, coord: I) -> Option<Self::Item> where
I: Into<Vector2<i32>>,
[src]
I: Into<Vector2<i32>>,
impl<T> Grid2Len for T where
T: Deref,
<T as Deref>::Target: Grid2Len,
[src]
T: Deref,
<T as Deref>::Target: Grid2Len,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,