pub struct Particle<T, F> {
pub position: T,
pub cost: F,
/* private fields */
}
Expand description
A single particle
Fields
position: T
Position of particle
cost: F
Cost of particle
Implementations
Trait Implementations
sourceimpl<'de, T, F> Deserialize<'de> for Particle<T, F> where
T: Deserialize<'de>,
F: Deserialize<'de>,
impl<'de, T, F> Deserialize<'de> for Particle<T, F> where
T: Deserialize<'de>,
F: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: PartialEq, F: PartialEq> PartialEq<Particle<T, F>> for Particle<T, F>
impl<T: PartialEq, F: PartialEq> PartialEq<Particle<T, F>> for Particle<T, F>
impl<T: Eq, F: Eq> Eq for Particle<T, F>
impl<T, F> StructuralEq for Particle<T, F>
impl<T, F> StructuralPartialEq for Particle<T, F>
Auto Trait Implementations
impl<T, F> RefUnwindSafe for Particle<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for Particle<T, F> where
F: Send,
T: Send,
impl<T, F> Sync for Particle<T, F> where
F: Sync,
T: Sync,
impl<T, F> Unpin for Particle<T, F> where
F: Unpin,
T: Unpin,
impl<T, F> UnwindSafe for Particle<T, F> where
F: UnwindSafe,
T: UnwindSafe,
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