pub enum IrInline {
Show 13 variants
Text {
value: String,
range: Option<Range>,
},
Code {
value: String,
range: Option<Range>,
},
Strong {
children: Vec<Self>,
range: Option<Range>,
},
Emphasis {
children: Vec<Self>,
range: Option<Range>,
},
Link {
href: String,
title: Option<String>,
children: Vec<Self>,
range: Option<Range>,
},
Image {
url: String,
title: Option<String>,
alt: Vec<Self>,
range: Option<Range>,
},
LineBreak {
hard: bool,
range: Option<Range>,
},
Ruby {
base: Vec<Self>,
reading: String,
explicit: bool,
range: Option<Range>,
},
DoubleRuby {
base: Vec<Self>,
range: Option<Range>,
},
Bouten {
children: Vec<Self>,
style: String,
position: String,
range: Option<Range>,
},
Gaiji {
codepoint: Option<String>,
description: Option<String>,
fallback_text: Option<String>,
range: Option<Range>,
},
Tcy {
text: String,
range: Option<Range>,
},
Annotation {
payload: String,
resolved: Option<String>,
range: Option<Range>,
},
}Variants§
Text
Code
Strong
Emphasis
Link
Image
CommonMark image. alt carries the alt-text inlines exactly
as comrak parses them (typically a single Text). url is
the image source; title is the optional "…" argument.
LineBreak
Ruby
Furigana. reading is the flattened reading text;
explicit is true when the source used the explicit
|base《reading》 opener.
DoubleRuby
《《…》》 double-bracket bouten. Upstream’s DoubleRuby
carries a single content payload — that payload becomes
base here. The shape is intentionally minimal: any future
upstream addition (e.g., explicit ring-style metadata) lands
as a new optional field rather than re-using empty strings as
placeholders.
Bouten
Emphasis dots / sidelines. style is one of "goma",
"whiteSesame", "circle", "whiteCircle", "doubleCircle",
"janome", "cross", "whiteTriangle", "wavyLine",
"underLine", "doubleUnderLine". position is "right" or
"left".
Gaiji
Fields
Tcy
Annotation
Generic annotation. payload is the raw bytes between
[# and ]. resolved carries the [AnnotationKind]
camelCase tag ("asIs", "textualNote", "invalidRubySpan",
"warichuOpen", "warichuClose") when the upstream lexer
classified the annotation; None for Unknown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IrInline
impl RefUnwindSafe for IrInline
impl Send for IrInline
impl Sync for IrInline
impl Unpin for IrInline
impl UnsafeUnpin for IrInline
impl UnwindSafe for IrInline
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<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more