[][src]Struct vst::util::AtomicFloat

pub struct AtomicFloat { /* fields omitted */ }

Simple atomic floating point variable with relaxed ordering.

Designed for the common case of sharing VST parameters between multiple threads when no synchronization or change notification is needed.


impl AtomicFloat[src]

pub fn new(value: f32) -> AtomicFloat[src]

New atomic float with initial value value.

pub fn get(&self) -> f32[src]

Get the current value of the atomic float.

pub fn set(&self, value: f32)[src]

Set the value of the atomic float to value.

Trait Implementations

impl Debug for AtomicFloat[src]

impl Default for AtomicFloat[src]

impl Display for AtomicFloat[src]

impl From<AtomicFloat> for f32[src]

impl From<f32> for AtomicFloat[src]

Auto Trait Implementations

impl RefUnwindSafe for AtomicFloat

impl Send for AtomicFloat

impl Sync for AtomicFloat

impl Unpin for AtomicFloat

impl UnwindSafe for AtomicFloat

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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized

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.