pub enum PixelDensityRamp {
None,
Left,
Right,
Top,
Bottom,
Radial,
Edges,
}Expand description
Which way the fill density ramps across the frame.
Variants§
None
Uniform: every cell has the same chance of being drawn.
Left
Right
Top
Bottom
Radial
Dense at the centre, thinning outwards.
Edges
Dense at the frame’s edges, thinning toward the centre — a vignette.
Measured on the reference piece, in a band clear of its window, the
density runs 10.9 · 6.5 · 0.8 · 0.2 · 0.2 · 0.2 · 0.2 · 0.9 · 7.8 · 8.8 %
across the tenths of the frame: heavy at both edges, effectively empty
through the middle 60 %. That is what keeps the texture off whatever
sits in the centre, and Radial is its exact inverse.
Trait Implementations§
Source§impl Clone for PixelDensityRamp
impl Clone for PixelDensityRamp
Source§fn clone(&self) -> PixelDensityRamp
fn clone(&self) -> PixelDensityRamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PixelDensityRamp
Source§impl Debug for PixelDensityRamp
impl Debug for PixelDensityRamp
Source§impl Default for PixelDensityRamp
impl Default for PixelDensityRamp
Source§fn default() -> PixelDensityRamp
fn default() -> PixelDensityRamp
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PixelDensityRamp
impl<'de> Deserialize<'de> for PixelDensityRamp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PixelDensityRamp
Source§impl JsonSchema for PixelDensityRamp
impl JsonSchema for PixelDensityRamp
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PixelDensityRamp
impl PartialEq for PixelDensityRamp
Source§impl Serialize for PixelDensityRamp
impl Serialize for PixelDensityRamp
impl StructuralPartialEq for PixelDensityRamp
Auto Trait Implementations§
impl Freeze for PixelDensityRamp
impl RefUnwindSafe for PixelDensityRamp
impl Send for PixelDensityRamp
impl Sync for PixelDensityRamp
impl Unpin for PixelDensityRamp
impl UnsafeUnpin for PixelDensityRamp
impl UnwindSafe for PixelDensityRamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more