pub struct LineSpacing {
pub spacing_type: Option<LineSpacingType>,
pub value: Option<f64>,
}Expand description
Line spacing configuration.
Fields§
§spacing_type: Option<LineSpacingType>Spacing type (percentage, fixed, between-lines).
value: Option<f64>The value: percentage (e.g. 160.0 for 160%) or fixed HwpUnit.
Implementations§
Source§impl LineSpacing
impl LineSpacing
Sourcepub fn merge(&mut self, other: &LineSpacing)
pub fn merge(&mut self, other: &LineSpacing)
Merges other into self (child fields override parent fields).
Trait Implementations§
Source§impl Clone for LineSpacing
impl Clone for LineSpacing
Source§fn clone(&self) -> LineSpacing
fn clone(&self) -> LineSpacing
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 LineSpacing
impl Debug for LineSpacing
Source§impl<'de> Deserialize<'de> for LineSpacing
impl<'de> Deserialize<'de> for LineSpacing
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 JsonSchema for LineSpacing
impl JsonSchema for LineSpacing
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 LineSpacing
impl PartialEq for LineSpacing
Source§impl Serialize for LineSpacing
impl Serialize for LineSpacing
impl Copy for LineSpacing
impl StructuralPartialEq for LineSpacing
Auto Trait Implementations§
impl Freeze for LineSpacing
impl RefUnwindSafe for LineSpacing
impl Send for LineSpacing
impl Sync for LineSpacing
impl Unpin for LineSpacing
impl UnwindSafe for LineSpacing
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