[−][src]Struct grid_trait::grid3::combinate::oobhandler::Grid3OobHandler
All values outside of a grid are supplied by a function.
Methods
impl<G, I, F> Grid3OobHandler<G, I, F> where
G: Grid3,
I: From<Vector3<i32>>,
F: Fn(I) -> <G as Grid3>::Item,
[src]
G: Grid3,
I: From<Vector3<i32>>,
F: Fn(I) -> <G as Grid3>::Item,
Trait Implementations
impl<G, I, F> Grid3 for Grid3OobHandler<G, I, F> where
G: Grid3,
I: From<Vector3<i32>>,
F: Fn(I) -> <G as Grid3>::Item,
[src]
G: Grid3,
I: From<Vector3<i32>>,
F: Fn(I) -> <G as Grid3>::Item,
type Item = <G as Grid3>::Item
type XBound = RangeFull
type YBound = RangeFull
type ZBound = RangeFull
fn x_bound(&self) -> RangeFull
[src]
fn y_bound(&self) -> RangeFull
[src]
fn z_bound(&self) -> RangeFull
[src]
fn in_bounds<I>(&self, coord: I) -> bool where
I: Into<Vector3<i32>>,
[src]
I: Into<Vector3<i32>>,
fn map<F, T>(self, func: F) -> Grid3Map<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) -> Grid3EnuMap<Self, F, T, I> where
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I, Self::Item) -> T,
[src]
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I, Self::Item) -> T,
fn flatten<I>(self, stride: I) -> Grid3Flat<Self> where
Self: Sized,
Self::Item: Grid3,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
Self::ZBound: Clone + RangeBoundsTimes,
I: Into<Vector3<i32>>,
[src]
Self: Sized,
Self::Item: Grid3,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
Self::ZBound: Clone + RangeBoundsTimes,
I: Into<Vector3<i32>>,
fn new_origin<I>(self, new_origin: I) -> Grid3NewOrigin<Self> where
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
Self::ZBound: RangeBoundsPlus,
I: Into<Vector3<i32>>,
[src]
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
Self::ZBound: RangeBoundsPlus,
I: Into<Vector3<i32>>,
fn oob_handler<I, F>(self, handler: F) -> Grid3OobHandler<Self, I, F> where
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I) -> Self::Item,
[src]
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I) -> Self::Item,
fn subview<X, Y, Z>(
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Grid3Slice<Self, X, Y, Z> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
[src]
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Grid3Slice<Self, X, Y, Z> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
fn try_subview<X, Y, Z>(
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Result<Grid3Slice<Self, X, Y, Z>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
[src]
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Result<Grid3Slice<Self, X, Y, Z>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
fn subview_0to(
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Grid3Slice<Self, Range0To, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Grid3Slice<Self, Range0To, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
fn try_subview_0to(
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Result<Grid3Slice<Self, Range0To, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Result<Grid3Slice<Self, Range0To, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
fn wrapping(self) -> Grid3Wrapping<Self> where
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
Self::ZBound: BoundRange,
[src]
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
Self::ZBound: BoundRange,
fn collect(&self) -> ArrayGrid3<Self::Item> where
Self: Grid3Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
Self::ZBound: Into<Range0To>,
[src]
Self: Grid3Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
Self::ZBound: Into<Range0To>,
impl<G, I, F> Grid3Get for Grid3OobHandler<G, I, F> where
G: Grid3 + Grid3Get,
I: From<Vector3<i32>>,
F: Fn(I) -> <G as Grid3>::Item,
[src]
G: Grid3 + Grid3Get,
I: From<Vector3<i32>>,
F: Fn(I) -> <G as Grid3>::Item,
Auto Trait Implementations
impl<G, I, F> RefUnwindSafe for Grid3OobHandler<G, I, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, I, F> Send for Grid3OobHandler<G, I, F> where
F: Send,
G: Send,
F: Send,
G: Send,
impl<G, I, F> Sync for Grid3OobHandler<G, I, F> where
F: Sync,
G: Sync,
F: Sync,
G: Sync,
impl<G, I, F> Unpin for Grid3OobHandler<G, I, F> where
F: Unpin,
G: Unpin,
F: Unpin,
G: Unpin,
impl<G, I, F> UnwindSafe for Grid3OobHandler<G, I, F> 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> Grid3 for T where
T: Deref,
<T as Deref>::Target: Grid3,
[src]
T: Deref,
<T as Deref>::Target: Grid3,
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
fn x_bound(&Self) -> <T as Grid3>::XBound
[src]
fn y_bound(&Self) -> <T as Grid3>::YBound
[src]
fn z_bound(&Self) -> <T as Grid3>::ZBound
[src]
fn in_bounds<I>(&self, coord: I) -> bool where
I: Into<Vector3<i32>>,
[src]
I: Into<Vector3<i32>>,
fn map<F, T>(self, func: F) -> Grid3Map<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) -> Grid3EnuMap<Self, F, T, I> where
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I, Self::Item) -> T,
[src]
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I, Self::Item) -> T,
fn flatten<I>(self, stride: I) -> Grid3Flat<Self> where
Self: Sized,
Self::Item: Grid3,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
Self::ZBound: Clone + RangeBoundsTimes,
I: Into<Vector3<i32>>,
[src]
Self: Sized,
Self::Item: Grid3,
Self::XBound: Clone + RangeBoundsTimes,
Self::YBound: Clone + RangeBoundsTimes,
Self::ZBound: Clone + RangeBoundsTimes,
I: Into<Vector3<i32>>,
fn new_origin<I>(self, new_origin: I) -> Grid3NewOrigin<Self> where
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
Self::ZBound: RangeBoundsPlus,
I: Into<Vector3<i32>>,
[src]
Self: Sized,
Self::XBound: RangeBoundsPlus,
Self::YBound: RangeBoundsPlus,
Self::ZBound: RangeBoundsPlus,
I: Into<Vector3<i32>>,
fn oob_handler<I, F>(self, handler: F) -> Grid3OobHandler<Self, I, F> where
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I) -> Self::Item,
[src]
Self: Sized,
I: From<Vector3<i32>>,
F: Fn(I) -> Self::Item,
fn subview<X, Y, Z>(
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Grid3Slice<Self, X, Y, Z> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
[src]
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Grid3Slice<Self, X, Y, Z> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
fn try_subview<X, Y, Z>(
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Result<Grid3Slice<Self, X, Y, Z>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
[src]
self,
new_x: X,
new_y: Y,
new_z: Z
) -> Result<Grid3Slice<Self, X, Y, Z>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
X: RangeBounds<i32> + Clone + Debug,
Y: RangeBounds<i32> + Clone + Debug,
Z: RangeBounds<i32> + Clone + Debug,
fn subview_0to(
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Grid3Slice<Self, Range0To, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Grid3Slice<Self, Range0To, Range0To, Range0To> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
fn try_subview_0to(
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Result<Grid3Slice<Self, Range0To, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
[src]
self,
new_x_len: i32,
new_y_len: i32,
new_z_len: i32
) -> Result<Grid3Slice<Self, Range0To, Range0To, Range0To>, Self> where
Self: Sized,
Self::XBound: Debug,
Self::YBound: Debug,
Self::ZBound: Debug,
fn wrapping(self) -> Grid3Wrapping<Self> where
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
Self::ZBound: BoundRange,
[src]
Self: Sized,
Self::XBound: BoundRange,
Self::YBound: BoundRange,
Self::ZBound: BoundRange,
fn collect(&self) -> ArrayGrid3<Self::Item> where
Self: Grid3Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
Self::ZBound: Into<Range0To>,
[src]
Self: Grid3Get,
Self::XBound: Into<Range0To>,
Self::YBound: Into<Range0To>,
Self::ZBound: Into<Range0To>,
impl<T> Grid3Get for T where
T: Deref,
<T as Deref>::Target: Grid3Get,
[src]
T: Deref,
<T as Deref>::Target: Grid3Get,
fn get<I>(&Self, I) -> <T as Grid3>::Item where
I: Into<Vector3<i32>>,
[src]
I: Into<Vector3<i32>>,
fn try_get<I>(&self, coord: I) -> Option<Self::Item> where
I: Into<Vector3<i32>>,
[src]
I: Into<Vector3<i32>>,
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>,