pub struct State {
pub id: (i32, i32, i32),
pub x: i32,
pub y: i32,
pub z: i32,
pub dx: i32,
pub dy: i32,
pub dz: i32,
pub parent_id: Option<(i32, i32, i32)>,
pub g: OrderedFloat<f32>,
pub h: OrderedFloat<f32>,
pub opened: bool,
pub closed: bool,
}
Expand description
Node of the graph in graph search
Fields
id: (i32, i32, i32)
ID
x: i32
Coord
y: i32
z: i32
dx: i32
direction
dy: i32
dz: i32
parent_id: Option<(i32, i32, i32)>
id of predicessors
g: OrderedFloat<f32>
g cost
h: OrderedFloat<f32>
heuristic cost
opened: bool
if has been opened
closed: bool
if has been closed
Implementations
Trait Implementations
sourceimpl PartialEq<State> for State
impl PartialEq<State> for State
impl Copy for State
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.