[][src]Enum sulis_state::animation::particle_generator::Dist

pub enum Dist {
    Fixed {
        value: f32,
    },
    Uniform {
        min: f32,
        max: f32,
    },
    FixedAngleUniformSpeed {
        angle: f32,
        min_speed: f32,
        max_speed: f32,
    },
    UniformAngleFixedSpeed {
        min_angle: f32,
        max_angle: f32,
        speed: f32,
    },
    UniformAngleUniformSpeed {
        min_angle: f32,
        max_angle: f32,
        min_speed: f32,
        max_speed: f32,
    },
}

Variants

Fixed

Fields of Fixed

value: f32
Uniform

Fields of Uniform

min: f32max: f32
FixedAngleUniformSpeed

Fields of FixedAngleUniformSpeed

angle: f32min_speed: f32max_speed: f32
UniformAngleFixedSpeed

Fields of UniformAngleFixedSpeed

min_angle: f32max_angle: f32speed: f32
UniformAngleUniformSpeed

Fields of UniformAngleUniformSpeed

min_angle: f32max_angle: f32min_speed: f32max_speed: f32

Implementations

impl Dist[src]

pub fn create_fixed(value: f32) -> Dist[src]

pub fn create_uniform(min: f32, max: f32) -> Dist[src]

pub fn create_angular(
    min_angle: f32,
    max_angle: f32,
    min_speed: f32,
    max_speed: f32
) -> Dist
[src]

Trait Implementations

impl Clone for Dist[src]

impl Copy for Dist[src]

impl Debug for Dist[src]

impl<'de> Deserialize<'de> for Dist[src]

impl Serialize for Dist[src]

impl UserData for Dist[src]

Auto Trait Implementations

impl RefUnwindSafe for Dist

impl Send for Dist

impl Sync for Dist

impl Unpin for Dist

impl UnwindSafe for Dist

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> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

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

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

impl<'lua, T> FromLua<'lua> for T where
    T: 'static + UserData + Clone
[src]

impl<'lua, T> FromLuaMulti<'lua> for T where
    T: FromLua<'lua>, 
[src]

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

impl<'lua, T> ToLua<'lua> for T where
    T: 'static + UserData + Send
[src]

impl<'lua, T> ToLuaMulti<'lua> for T where
    T: ToLua<'lua>, 
[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>, 
[src]