pub struct TextLine {
pub s: String,
pub math: Option<MathSpan>,
pub halign: i8,
pub valign: i8,
pub text_offset: f64,
}Expand description
A line of attached text with placement hints.
Fields§
§s: String§math: Option<MathSpan>rpic texlabels extension: when set, this line is a typeset math
formula and s keeps the original literal for fallback/diagnostics.
halign: i8horizontal: -1 = ljust, 0 = center, +1 = rjust.
valign: i8vertical: +1 = above, 0 = center, -1 = below.
text_offset: f64Extra text-position offset in inches (textoffset).
Trait Implementations§
impl StructuralPartialEq for TextLine
Auto Trait Implementations§
impl Freeze for TextLine
impl RefUnwindSafe for TextLine
impl Send for TextLine
impl Sync for TextLine
impl Unpin for TextLine
impl UnsafeUnpin for TextLine
impl UnwindSafe for TextLine
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