pub struct Array<S, V, T, L = <V as Vector<S>>::DefaultLayout>{ /* private fields */ }Expand description
An array indexed by points in a bounding box.
Implementations§
Source§impl<S, V, T> Array<S, V, T, <V as Vector<S>>::DefaultLayout>
impl<S, V, T> Array<S, V, T, <V as Vector<S>>::DefaultLayout>
Source§impl<S, V, T, L> Array<S, V, T, L>
impl<S, V, T, L> Array<S, V, T, L>
Sourcepub fn bounds(&self) -> BBox<S, V>
👎Deprecated: Use bbox instead.
pub fn bounds(&self) -> BBox<S, V>
bbox instead.Returns the bounding box of the array.
Sourcepub fn get(&self, index: Point<S, V>) -> Option<&T>
pub fn get(&self, index: Point<S, V>) -> Option<&T>
Returns a reference to the element at the index or None if the index is out of bounds.
Trait Implementations§
impl<S, V, T: Eq, L> Eq for Array<S, V, T, L>
impl<S, V, T, L> StructuralPartialEq for Array<S, V, T, L>
Auto Trait Implementations§
impl<S, V, T, L> Freeze for Array<S, V, T, L>where
L: Freeze,
impl<S, V, T, L> RefUnwindSafe for Array<S, V, T, L>
impl<S, V, T, L> Send for Array<S, V, T, L>
impl<S, V, T, L> Sync for Array<S, V, T, L>
impl<S, V, T, L> Unpin for Array<S, V, T, L>
impl<S, V, T, L> UnwindSafe for Array<S, V, T, L>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more