pub enum OriginalGloss {
Parens,
Ruby,
}Expand description
Form for the gloss attached to annotations in RenderMode::Original.
Original keeps the source hanja as primary text and only attaches a
hangul gloss when the annotation flags or a user directive demand one.
This option controls how that gloss appears. Because Original always
treats hanja as primary, the ruby form uses hanja as the base and hangul
as the rt gloss; there is no sub-mode to flip the sides.
Variants§
Parens
hanja(hangul); matches the legacy behavior.
Ruby
A <ruby> element with hanja as the base and hangul as the rt
gloss, falling back to parens when the active scope disallows inline
markup.
Trait Implementations§
Source§impl Clone for OriginalGloss
impl Clone for OriginalGloss
Source§fn clone(&self) -> OriginalGloss
fn clone(&self) -> OriginalGloss
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OriginalGloss
impl Debug for OriginalGloss
Source§impl Default for OriginalGloss
impl Default for OriginalGloss
Source§fn default() -> OriginalGloss
fn default() -> OriginalGloss
Returns the “default value” for a type. Read more
Source§impl PartialEq for OriginalGloss
impl PartialEq for OriginalGloss
Source§fn eq(&self, other: &OriginalGloss) -> bool
fn eq(&self, other: &OriginalGloss) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OriginalGloss
impl Eq for OriginalGloss
impl StructuralPartialEq for OriginalGloss
Auto Trait Implementations§
impl Freeze for OriginalGloss
impl RefUnwindSafe for OriginalGloss
impl Send for OriginalGloss
impl Sync for OriginalGloss
impl Unpin for OriginalGloss
impl UnsafeUnpin for OriginalGloss
impl UnwindSafe for OriginalGloss
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,
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.