pub enum Inline {
Text(String),
Ruby {
base: String,
ruby: RubyReading,
},
Tcy(String),
Break,
Em {
mark: String,
children: Vec<Inline>,
},
NoBreak(Vec<Inline>),
Warichu(Vec<Inline>),
Kern {
amount: String,
children: Vec<Inline>,
},
}Expand description
A language-neutral MDI inline AST.
Variants§
Trait Implementations§
impl Eq for Inline
Source§impl Serialize for Inline
Keep the public wire nodes flat ({ type, value }, { type, children },
and so on) without forcing the Rust implementation to use struct variants
internally. This shape maps naturally to discriminated unions in every
host language.
impl Serialize for Inline
Keep the public wire nodes flat ({ type, value }, { type, children },
and so on) without forcing the Rust implementation to use struct variants
internally. This shape maps naturally to discriminated unions in every
host language.
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnsafeUnpin for Inline
impl UnwindSafe for Inline
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.