#[non_exhaustive]#[repr(u8)]pub enum UnderlineShape {
Solid = 0,
Dash = 1,
Dot = 2,
DashDot = 3,
DashDotDot = 4,
LongDash = 5,
Circle = 6,
DoubleSlim = 7,
SlimThick = 8,
ThickSlim = 9,
ThickSlimThick = 10,
Wave = 11,
}Expand description
Underline line family (e.g. SOLID, DASH, WAVE).
This selects the line style used by an underline; the position
(Bottom/Center/Top) is carried separately by UnderlineType.
§Examples
use hwpforge_foundation::UnderlineShape;
assert_eq!(UnderlineShape::default(), UnderlineShape::Solid);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Solid = 0
Solid continuous line (default).
Dash = 1
Dashed line.
Dot = 2
Dotted line.
DashDot = 3
Dash-dot pattern.
DashDotDot = 4
Dash-dot-dot pattern.
LongDash = 5
Long dash pattern.
Circle = 6
Repeating small circles.
DoubleSlim = 7
Double thin line.
SlimThick = 8
Thin then thick double line.
ThickSlim = 9
Thick then thin double line.
ThickSlimThick = 10
Thick-thin-thick triple line.
Wave = 11
Wavy line.
Trait Implementations§
Source§impl Clone for UnderlineShape
impl Clone for UnderlineShape
Source§fn clone(&self) -> UnderlineShape
fn clone(&self) -> UnderlineShape
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 moreSource§impl Debug for UnderlineShape
impl Debug for UnderlineShape
Source§impl Default for UnderlineShape
impl Default for UnderlineShape
Source§fn default() -> UnderlineShape
fn default() -> UnderlineShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnderlineShape
impl<'de> Deserialize<'de> for UnderlineShape
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 Display for UnderlineShape
impl Display for UnderlineShape
Source§impl FromStr for UnderlineShape
impl FromStr for UnderlineShape
Source§impl Hash for UnderlineShape
impl Hash for UnderlineShape
Source§impl JsonSchema for UnderlineShape
impl JsonSchema for UnderlineShape
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 moreSource§impl PartialEq for UnderlineShape
impl PartialEq for UnderlineShape
Source§fn eq(&self, other: &UnderlineShape) -> bool
fn eq(&self, other: &UnderlineShape) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnderlineShape
impl Serialize for UnderlineShape
Source§impl TryFrom<u8> for UnderlineShape
impl TryFrom<u8> for UnderlineShape
impl Copy for UnderlineShape
impl Eq for UnderlineShape
impl StructuralPartialEq for UnderlineShape
Auto Trait Implementations§
impl Freeze for UnderlineShape
impl RefUnwindSafe for UnderlineShape
impl Send for UnderlineShape
impl Sync for UnderlineShape
impl Unpin for UnderlineShape
impl UnsafeUnpin for UnderlineShape
impl UnwindSafe for UnderlineShape
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.