pub struct OccupancyCellUpdate {
pub x: usize,
pub y: usize,
pub evidence: OccupancyEvidence,
pub before: f32,
pub after: f32,
}Expand description
One actual log-odds update. Each cell appears at most once per scan.
Fields§
§x: usize§y: usize§evidence: OccupancyEvidence§before: f32§after: f32Trait Implementations§
Source§impl Clone for OccupancyCellUpdate
impl Clone for OccupancyCellUpdate
impl Copy for OccupancyCellUpdate
Source§impl Debug for OccupancyCellUpdate
impl Debug for OccupancyCellUpdate
Source§impl PartialEq for OccupancyCellUpdate
impl PartialEq for OccupancyCellUpdate
impl StructuralPartialEq for OccupancyCellUpdate
Auto Trait Implementations§
impl Freeze for OccupancyCellUpdate
impl RefUnwindSafe for OccupancyCellUpdate
impl Send for OccupancyCellUpdate
impl Sync for OccupancyCellUpdate
impl Unpin for OccupancyCellUpdate
impl UnsafeUnpin for OccupancyCellUpdate
impl UnwindSafe for OccupancyCellUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.