#[non_exhaustive]pub enum DropCapStyle {
None = 0,
DoubleLine = 1,
TripleLine = 2,
Margin = 3,
}Expand description
Drop cap style for floating shape objects (HWPX dropcapstyle attribute).
Controls whether a shape (text box, image, table, etc.) is formatted as a drop capital that occupies multiple lines at the start of a paragraph.
§HWPX Values
| Variant | HWPX string |
|---|---|
None | "None" |
DoubleLine | "DoubleLine" |
TripleLine | "TripleLine" |
Margin | "Margin" |
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 drop cap (default).
DoubleLine = 1
Drop cap spanning 2 lines.
TripleLine = 2
Drop cap spanning 3 lines.
Margin = 3
Drop cap positioned in the margin.
Implementations§
Source§impl DropCapStyle
impl DropCapStyle
Sourcepub fn from_hwpx_str(s: &str) -> Self
pub fn from_hwpx_str(s: &str) -> Self
Parses an HWPX dropcapstyle attribute value (PascalCase).
Unknown values fall back to None (default) for forward compatibility.
Trait Implementations§
Source§impl Clone for DropCapStyle
impl Clone for DropCapStyle
Source§fn clone(&self) -> DropCapStyle
fn clone(&self) -> DropCapStyle
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 DropCapStyle
impl Debug for DropCapStyle
Source§impl Default for DropCapStyle
impl Default for DropCapStyle
Source§fn default() -> DropCapStyle
fn default() -> DropCapStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DropCapStyle
impl<'de> Deserialize<'de> for DropCapStyle
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DropCapStyle
impl Display for DropCapStyle
Source§impl FromStr for DropCapStyle
impl FromStr for DropCapStyle
Source§impl Hash for DropCapStyle
impl Hash for DropCapStyle
Source§impl JsonSchema for DropCapStyle
impl JsonSchema for DropCapStyle
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 DropCapStyle
impl PartialEq for DropCapStyle
Source§impl Serialize for DropCapStyle
impl Serialize for DropCapStyle
impl Copy for DropCapStyle
impl Eq for DropCapStyle
impl StructuralPartialEq for DropCapStyle
Auto Trait Implementations§
impl Freeze for DropCapStyle
impl RefUnwindSafe for DropCapStyle
impl Send for DropCapStyle
impl Sync for DropCapStyle
impl Unpin for DropCapStyle
impl UnwindSafe for DropCapStyle
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.