pub struct Flow {
pub color: Color,
pub spacing: f32,
pub length: f32,
pub width: f32,
pub units: bool,
}Expand description
How comets flowing along edges and lines look: each a round head, brightest at its middle, trailing a tail that thins and fades.
Fields§
§color: ColorA comet’s color; its alpha is how strongly a comet covers its stroke.
spacing: f32Distance between comets.
length: f32How far a comet’s tail trails its head.
width: f32How wide a comet’s head is, CSS pixels, or units in a diagram; never narrower than its stroke.
units: boolWhether comets are part of the drawing: their spacing, length, and each row’s flow in position units, degrees on the earth, so they zoom with the view and stay where they are on their lines. Otherwise they keep their size and speed on screen, and slide along their lines as it zooms.
Trait Implementations§
impl Copy for Flow
Source§impl<'de> Deserialize<'de> for Flow
impl<'de> Deserialize<'de> for Flow
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
Source§impl JsonSchema for Flow
impl JsonSchema for Flow
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Freeze for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
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