pub enum LineItem {
Text(TextSegment),
Tab {
width: f64,
leader: Option<TextSegment>,
},
Image {
width: f64,
height: f64,
embed_id: String,
},
Marker(TextSegment),
}Expand description
A single item positioned on a line.
Variants§
Text(TextSegment)
Tab
Fields
§
leader: Option<TextSegment>Pre-shaped leader text to fill the tab gap (e.g., dots, hyphens).
Image
Marker(TextSegment)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineItem
impl RefUnwindSafe for LineItem
impl Send for LineItem
impl Sync for LineItem
impl Unpin for LineItem
impl UnsafeUnpin for LineItem
impl UnwindSafe for LineItem
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