pub enum UnstratifiedStyle {
Hidden,
Solid {
colour: String,
},
Dashed {
colour: String,
dash: f64,
gap: f64,
},
Hatched {
colour: String,
spacing: f64,
angle: f64,
},
}Expand description
How the portions of a well that no interval covers are drawn. Serialised as
{ "kind": "dashed", "colour": "#999999", "dash": 6, "gap": 4 }; the kinds
and their parameters are declared by crate::style::declared, which a test
holds against this enum.
Variants§
Hidden
Not drawn at all.
Solid
A plain line in one colour.
Dashed
A dashed line.
Fields
Hatched
A texture: parallel stripes, an SVG <pattern> the line is stroked with.
Implementations§
Source§impl UnstratifiedStyle
impl UnstratifiedStyle
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this is the default - what is not written.
Trait Implementations§
Source§impl Clone for UnstratifiedStyle
impl Clone for UnstratifiedStyle
Source§impl Debug for UnstratifiedStyle
impl Debug for UnstratifiedStyle
Source§impl Default for UnstratifiedStyle
impl Default for UnstratifiedStyle
Source§impl<'de> Deserialize<'de> for UnstratifiedStyle
impl<'de> Deserialize<'de> for UnstratifiedStyle
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 PartialEq for UnstratifiedStyle
impl PartialEq for UnstratifiedStyle
Source§impl Serialize for UnstratifiedStyle
impl Serialize for UnstratifiedStyle
impl StructuralPartialEq for UnstratifiedStyle
Auto Trait Implementations§
impl Freeze for UnstratifiedStyle
impl RefUnwindSafe for UnstratifiedStyle
impl Send for UnstratifiedStyle
impl Sync for UnstratifiedStyle
impl Unpin for UnstratifiedStyle
impl UnsafeUnpin for UnstratifiedStyle
impl UnwindSafe for UnstratifiedStyle
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