pub struct NeighborCell {
pub relative_position: Position,
pub weight: f32,
}Expand description
Represents a neighbor cell in the kernel transformation method.
Fields§
§relative_position: PositionWhich map cell this transform takes its value from, relative to the current cell. That is to say, if the transform is currently working on cell (5, 2) and this field is (-1, 1), it will get its value from (4, 3).
weight: f32What to scale this neighbor cell’s value by when calculating the new value of the current cell.
Trait Implementations§
Source§impl Clone for NeighborCell
impl Clone for NeighborCell
Source§fn clone(&self) -> NeighborCell
fn clone(&self) -> NeighborCell
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeighborCell
impl Debug for NeighborCell
impl Copy for NeighborCell
Auto Trait Implementations§
impl Freeze for NeighborCell
impl RefUnwindSafe for NeighborCell
impl Send for NeighborCell
impl Sync for NeighborCell
impl Unpin for NeighborCell
impl UnwindSafe for NeighborCell
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