#[non_exhaustive]pub enum RefType {
Bookmark,
Table,
Figure,
Equation,
Footnote,
Endnote,
Outline,
Unknown(u8),
}Expand description
Target type of a cross-reference (상호참조).
Wave 12m Phase 2 (Codex(architect+critic) review 반영):
#[repr(u8)]제거 — HWP5 wire 코드는 boundary 에서 매핑 (Core/foundation 은 wire-agnostic 의미 모델만 유지).Footnote/Endnote/Outline추가 (한컴 native dropdown 7 종 완비).Unknown(u8)tuple variant 추가 — silent fallback 위조 방지 (Codex HIGH).
HWP5 %xrf Command N1 코드 → RefType 변환은
smithy-hwp5/src/projection.rs::decode_hwp5_ref_type 에서 수행.
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.
Bookmark
Reference to a bookmark target. 한컴: “책갈피”
Table
Reference to a table caption number. 한컴: “표”
Figure
Reference to a figure/image caption number. 한컴: “그림”
Equation
Reference to an equation caption number. 한컴: “수식”
Footnote
Reference to a footnote (각주).
Endnote
Reference to an endnote (미주).
Outline
Reference to an outline heading (개요).
Unknown(u8)
Unrecognized RefType code preserved from wire for forward compatibility. Carriers MUST NOT silently fallback to a known variant — the unknown code is preserved so future Hancom extensions don’t get silently lost.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefType
impl<'de> Deserialize<'de> for RefType
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
impl Eq for RefType
Source§impl JsonSchema for RefType
impl JsonSchema for RefType
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 moreimpl StructuralPartialEq for RefType
Auto Trait Implementations§
impl Freeze for RefType
impl RefUnwindSafe for RefType
impl Send for RefType
impl Sync for RefType
impl Unpin for RefType
impl UnsafeUnpin for RefType
impl UnwindSafe for RefType
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<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
Compare self to
key and return true if they are equal.