pub struct InlineSegment {Show 17 fields
pub content: InlineContent,
pub fmt_font_family: Option<String>,
pub fmt_font_point_size: Option<i64>,
pub fmt_font_weight: Option<i64>,
pub fmt_font_bold: Option<bool>,
pub fmt_font_italic: Option<bool>,
pub fmt_font_underline: Option<bool>,
pub fmt_font_overline: Option<bool>,
pub fmt_font_strikeout: Option<bool>,
pub fmt_letter_spacing: Option<i64>,
pub fmt_word_spacing: Option<i64>,
pub fmt_anchor_href: Option<String>,
pub fmt_anchor_names: Vec<String>,
pub fmt_is_anchor: Option<bool>,
pub fmt_tooltip: Option<String>,
pub fmt_underline_style: Option<UnderlineStyle>,
pub fmt_vertical_alignment: Option<CharVerticalAlignment>,
}Expand description
A lean view type representing one inline segment (text or image) with its
associated formatting. Used by readers (export, fragments, cursor) to
consume per-segment data synthesized from (plain_text, format_runs, block_images) via crate::format_runs_query::inline_segments_for_block.
Never stored — synthesized on demand.
The fmt_* field names match those on Block and on FragmentElement
so readers can copy fields verbatim across the three types.
Fields§
§content: InlineContent§fmt_font_family: Option<String>§fmt_font_point_size: Option<i64>§fmt_font_weight: Option<i64>§fmt_font_bold: Option<bool>§fmt_font_italic: Option<bool>§fmt_font_underline: Option<bool>§fmt_font_overline: Option<bool>§fmt_font_strikeout: Option<bool>§fmt_letter_spacing: Option<i64>§fmt_word_spacing: Option<i64>§fmt_anchor_href: Option<String>§fmt_anchor_names: Vec<String>§fmt_is_anchor: Option<bool>§fmt_tooltip: Option<String>§fmt_underline_style: Option<UnderlineStyle>§fmt_vertical_alignment: Option<CharVerticalAlignment>Trait Implementations§
Source§impl Clone for InlineSegment
impl Clone for InlineSegment
Source§fn clone(&self) -> InlineSegment
fn clone(&self) -> InlineSegment
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 InlineSegment
impl Debug for InlineSegment
Source§impl Default for InlineSegment
impl Default for InlineSegment
Source§fn default() -> InlineSegment
fn default() -> InlineSegment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InlineSegment
impl<'de> Deserialize<'de> for InlineSegment
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
Source§impl PartialEq for InlineSegment
impl PartialEq for InlineSegment
Source§fn eq(&self, other: &InlineSegment) -> bool
fn eq(&self, other: &InlineSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InlineSegment
impl Serialize for InlineSegment
impl Eq for InlineSegment
impl StructuralPartialEq for InlineSegment
Auto Trait Implementations§
impl Freeze for InlineSegment
impl RefUnwindSafe for InlineSegment
impl Send for InlineSegment
impl Sync for InlineSegment
impl Unpin for InlineSegment
impl UnsafeUnpin for InlineSegment
impl UnwindSafe for InlineSegment
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