#[non_exhaustive]pub struct TableLayoutCache {
pub saved_sz_height: Option<HwpUnit>,
pub default_flow_pos: bool,
}Expand description
Decode-only layout cache for a table — Hancom-saved wire values that are replayed or used as checksums, never re-typeset.
Encoders MUST NOT emit these values back to the wire (the HWPX encoder
keeps its own sz policy). Edit surfaces drop this cache together with
paragraph caches via crate::document::Document::strip_layout_caches.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.saved_sz_height: Option<HwpUnit>Hancom-saved <hp:sz height> (None when the wire stored 0 or
omitted it — natively authored split tables do).
⚠️ For a page-spanning (split) table this is the first fragment’s height, not the total table height (W0 measurement).
default_flow_pos: boolWhether the wire <hp:pos> was the default inline-flow combination
(treatAsChar=0, flowWithText=1, PARA/COLUMN relative, zero
offsets). Renderers only support default-flow tables — a false
here must fail closed (verified profile admission).
Implementations§
Trait Implementations§
Source§impl Clone for TableLayoutCache
impl Clone for TableLayoutCache
Source§fn clone(&self) -> TableLayoutCache
fn clone(&self) -> TableLayoutCache
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TableLayoutCache
Source§impl Debug for TableLayoutCache
impl Debug for TableLayoutCache
Source§impl<'de> Deserialize<'de> for TableLayoutCache
impl<'de> Deserialize<'de> for TableLayoutCache
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>,
impl Eq for TableLayoutCache
Source§impl JsonSchema for TableLayoutCache
impl JsonSchema for TableLayoutCache
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 TableLayoutCache
impl PartialEq for TableLayoutCache
Source§impl Serialize for TableLayoutCache
impl Serialize for TableLayoutCache
impl StructuralPartialEq for TableLayoutCache
Auto Trait Implementations§
impl Freeze for TableLayoutCache
impl RefUnwindSafe for TableLayoutCache
impl Send for TableLayoutCache
impl Sync for TableLayoutCache
impl Unpin for TableLayoutCache
impl UnsafeUnpin for TableLayoutCache
impl UnwindSafe for TableLayoutCache
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.