pub struct ImageField {
pub data: Vec<Real>,
pub width: usize,
pub height: usize,
}Expand description
A 2D scalar field on a regular grid, stored row-major.
data[row * width + col] gives the value at pixel (row, col).
Fields§
§data: Vec<Real>§width: usize§height: usizeImplementations§
Trait Implementations§
Source§impl Clone for ImageField
impl Clone for ImageField
Source§fn clone(&self) -> ImageField
fn clone(&self) -> ImageField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImageField
impl RefUnwindSafe for ImageField
impl Send for ImageField
impl Sync for ImageField
impl Unpin for ImageField
impl UnsafeUnpin for ImageField
impl UnwindSafe for ImageField
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