#[non_exhaustive]#[repr(u8)]pub enum PatternType {
Horizontal = 0,
Vertical = 1,
BackSlash = 2,
Slash = 3,
Cross = 4,
CrossDiagonal = 5,
}Expand description
Hatch/pattern fill type for shapes.
§Examples
use hwpforge_foundation::PatternType;
assert_eq!(PatternType::default(), PatternType::Horizontal);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.
Horizontal = 0
Horizontal lines (default).
Vertical = 1
Vertical lines.
BackSlash = 2
Backslash diagonal lines.
Slash = 3
Forward slash diagonal lines.
Cross = 4
Cross-hatch (horizontal + vertical).
CrossDiagonal = 5
Cross-diagonal hatch.
Trait Implementations§
Source§impl Clone for PatternType
impl Clone for PatternType
Source§fn clone(&self) -> PatternType
fn clone(&self) -> PatternType
Returns a duplicate of the value. Read more
1.0.0 · 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 PatternType
impl Debug for PatternType
Source§impl Default for PatternType
impl Default for PatternType
Source§fn default() -> PatternType
fn default() -> PatternType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatternType
impl<'de> Deserialize<'de> for PatternType
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 PatternType
impl Display for PatternType
Source§impl FromStr for PatternType
impl FromStr for PatternType
Source§impl Hash for PatternType
impl Hash for PatternType
Source§impl JsonSchema for PatternType
impl JsonSchema for PatternType
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 PatternType
impl PartialEq for PatternType
Source§impl Serialize for PatternType
impl Serialize for PatternType
Source§impl TryFrom<u8> for PatternType
impl TryFrom<u8> for PatternType
impl Copy for PatternType
impl Eq for PatternType
impl StructuralPartialEq for PatternType
Auto Trait Implementations§
impl Freeze for PatternType
impl RefUnwindSafe for PatternType
impl Send for PatternType
impl Sync for PatternType
impl Unpin for PatternType
impl UnwindSafe for PatternType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.