pub struct InlineTabAttr {
pub width: HwpUnit,
pub leader: u8,
pub tab_type: u8,
}Expand description
Per-occurrence attributes for an inline <hp:tab> element.
Mirrors the HWP5 0x09 control char’s 14-byte inline payload (only the first 6 bytes are meaningful per HWP 5.0 spec §1.5):
| offset | width | meaning |
|---|---|---|
| 0..4 | u32 LE | width — HwpUnit, distance to the stop |
| 4 | u8 | leader — fill glyph (raw HWP5 enum) |
| 5 | u8 | tab_type — 0=Left, 1=Right, 2=Center, 3=Decimal |
The raw leader / tab_type integers are preserved verbatim and
emitted into HWPX as <hp:tab leader="3" type="1"/> — Hancom uses
the HWP5 numeric encoding directly for inline tabs (unlike the
header-level <hh:tabItem> which uses enum strings).
Fields§
§width: HwpUnitPosition (HwpUnit) at which the tab stops. Truth-pair fixtures
show this is the original HWP5 raw value, NOT the halved
HwpUnitChar form used by <hh:tabPr> stops.
leader: u8Raw HWP5 fill_type byte (0..=4 known; openhwp: 0=None, 1=Dot, 2=LongDash, 3=Dash, 4=Underscore).
tab_type: u8Raw HWP5 tab_type byte (0=Left, 1=Right, 2=Center, 3=Decimal).
Implementations§
Source§impl InlineTabAttr
impl InlineTabAttr
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true when all attributes are zero — i.e. a default tab
that is semantically identical to a bare <hp:tab/> and does
not need the rich InlineSegment::Tab representation.
Trait Implementations§
Source§impl Clone for InlineTabAttr
impl Clone for InlineTabAttr
Source§fn clone(&self) -> InlineTabAttr
fn clone(&self) -> InlineTabAttr
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InlineTabAttr
impl Debug for InlineTabAttr
Source§impl<'de> Deserialize<'de> for InlineTabAttr
impl<'de> Deserialize<'de> for InlineTabAttr
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>,
Source§impl JsonSchema for InlineTabAttr
impl JsonSchema for InlineTabAttr
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for InlineTabAttr
impl PartialEq for InlineTabAttr
Source§fn eq(&self, other: &InlineTabAttr) -> bool
fn eq(&self, other: &InlineTabAttr) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for InlineTabAttr
impl Serialize for InlineTabAttr
impl Copy for InlineTabAttr
impl Eq for InlineTabAttr
impl StructuralPartialEq for InlineTabAttr
Auto Trait Implementations§
impl Freeze for InlineTabAttr
impl RefUnwindSafe for InlineTabAttr
impl Send for InlineTabAttr
impl Sync for InlineTabAttr
impl Unpin for InlineTabAttr
impl UnsafeUnpin for InlineTabAttr
impl UnwindSafe for InlineTabAttr
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
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
key and return true if they are equal.