#[non_exhaustive]#[repr(u8)]pub enum EmphasisType {
Show 13 variants
None = 0,
DotAbove = 1,
RingAbove = 2,
Tilde = 3,
Caron = 4,
Side = 5,
Colon = 6,
GraveAccent = 7,
AcuteAccent = 8,
Circumflex = 9,
Macron = 10,
HookAbove = 11,
DotBelow = 12,
}Expand description
Character emphasis mark (symMark attribute in HWPX).
Controls the emphasis symbol displayed above or below characters.
Maps to HWPX symMark attribute values.
§Examples
use hwpforge_foundation::EmphasisType;
assert_eq!(EmphasisType::default(), EmphasisType::None);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.
None = 0
No emphasis mark (default).
DotAbove = 1
Dot above character.
RingAbove = 2
Ring above character.
Tilde = 3
Tilde above character.
Caron = 4
Caron (hacek) above character.
Side = 5
Side dot.
Colon = 6
Colon mark.
GraveAccent = 7
Grave accent.
AcuteAccent = 8
Acute accent.
Circumflex = 9
Circumflex accent.
Macron = 10
Macron (overline).
HookAbove = 11
Hook above.
DotBelow = 12
Dot below character.
Trait Implementations§
Source§impl Clone for EmphasisType
impl Clone for EmphasisType
Source§fn clone(&self) -> EmphasisType
fn clone(&self) -> EmphasisType
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 EmphasisType
impl Debug for EmphasisType
Source§impl Default for EmphasisType
impl Default for EmphasisType
Source§fn default() -> EmphasisType
fn default() -> EmphasisType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmphasisType
impl<'de> Deserialize<'de> for EmphasisType
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 EmphasisType
impl Display for EmphasisType
Source§impl FromStr for EmphasisType
impl FromStr for EmphasisType
Source§impl Hash for EmphasisType
impl Hash for EmphasisType
Source§impl JsonSchema for EmphasisType
impl JsonSchema for EmphasisType
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 EmphasisType
impl PartialEq for EmphasisType
Source§impl Serialize for EmphasisType
impl Serialize for EmphasisType
Source§impl TryFrom<u8> for EmphasisType
impl TryFrom<u8> for EmphasisType
impl Copy for EmphasisType
impl Eq for EmphasisType
impl StructuralPartialEq for EmphasisType
Auto Trait Implementations§
impl Freeze for EmphasisType
impl RefUnwindSafe for EmphasisType
impl Send for EmphasisType
impl Sync for EmphasisType
impl Unpin for EmphasisType
impl UnwindSafe for EmphasisType
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.