Struct argmin::solver::particleswarm::Particle[][src]

pub struct Particle<T, F> {
    pub position: T,
    pub cost: F,
    // some fields omitted

A single particle


position: T

Position of particle

cost: F

Cost of particle

Trait Implementations

impl<T: Clone, F: Clone> Clone for Particle<T, F>[src]

impl<T: Debug, F: Debug> Debug for Particle<T, F>[src]

impl<'de, T, F> Deserialize<'de> for Particle<T, F> where
    T: Deserialize<'de>,
    F: Deserialize<'de>, 

impl<T, F> Serialize for Particle<T, F> where
    T: Serialize,
    F: Serialize

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

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,