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

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

A single particle

Fields

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>, 
[src]

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

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,