Struct solstice_2d::PerlinTextureSettings [−][src]
pub struct PerlinTextureSettings {
pub seed: i32,
pub width: usize,
pub height: usize,
pub period: u32,
pub levels: u32,
pub attenuation: NotNan<f32>,
pub color: bool,
}Fields
seed: i32width: usizeheight: usizeperiod: u32levels: u32attenuation: NotNan<f32>color: boolTrait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PerlinTextureSettings
impl Send for PerlinTextureSettings
impl Sync for PerlinTextureSettings
impl Unpin for PerlinTextureSettings
impl UnwindSafe for PerlinTextureSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self to the equivalent element of its superset.
