pub struct TextLine {
pub s: String,
pub halign: i8,
pub valign: i8,
}Expand description
A line of attached text with placement hints.
Fields§
§s: String§halign: i8horizontal: -1 = ljust, 0 = center, +1 = rjust.
valign: i8vertical: +1 = above, 0 = center, -1 = below.
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