[][src]Struct goliard::State

pub struct State {
    pub life: Arc<Mutex<Life>>,
    pub is_running: Arc<AtomicBool>,
    pub scale: Arc<Mutex<u64>>,
    pub center: Arc<Mutex<(i64, i64)>>,
    pub delay_millis: Arc<Mutex<u64>>,
}

Fields

life: Arc<Mutex<Life>>is_running: Arc<AtomicBool>scale: Arc<Mutex<u64>>center: Arc<Mutex<(i64, i64)>>delay_millis: Arc<Mutex<u64>>

Methods

impl State[src]

pub fn new_centered(life: Life, output_width: u64, output_height: u64) -> Self[src]

Trait Implementations

impl Clone for State[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for State

impl Sync for State

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> With for T[src]

fn with<F>(self, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure on self.

fn try_with<E, F>(self, f: F) -> Result<Self, E> where
    F: FnOnce(&mut Self) -> Result<(), E>, 
[src]

Calls the given closure on self.

fn with_if<F>(self, condition: bool, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure if condition == true.

impl<T> Erased for T

impl<T> FromCast for T

impl<T, U> Cast for T where
    U: FromCast<T>,