pub struct Line {
pub row: u16,
pub col: u16,
pub width: usize,
}Fields§
§row: u16§col: u16§width: usizeImplementations§
Source§impl Line
impl Line
pub const fn empty() -> Self
pub fn fill(self, symbol: char, backend: &mut impl Backend)
pub fn fill_styled<B: Backend>( self, symbol: char, style: <B as Backend>::Style, backend: &mut B, )
pub fn render_centered(self, text: &str, backend: &mut impl Backend)
pub fn render_centered_styled<B: Backend>( self, text: &str, style: <B as Backend>::Style, backend: &mut B, )
pub fn render_left(self, text: &str, backend: &mut impl Backend)
pub fn render_left_styled<B: Backend>( self, text: &str, style: <B as Backend>::Style, backend: &mut B, )
pub fn render_empty(self, backend: &mut impl Backend)
pub fn render(self, text: &str, backend: &mut impl Backend)
pub fn render_styled<B: Backend>( self, text: &str, style: <B as Backend>::Style, backend: &mut B, )
pub const fn split_rel(self, idx: usize) -> (Self, Self)
pub fn contains_position(&self, row: u16, column: u16) -> bool
Sourcepub fn unsafe_builder<T: Backend>(self, backend: &mut T) -> LineBuilder<'_, T>
pub fn unsafe_builder<T: Backend>(self, backend: &mut T) -> LineBuilder<'_, T>
creates line builder from Line push/push_styled can be used to add to line on drop pads the line to end
Sourcepub fn unsafe_builder_rev<T: Backend>(
self,
backend: &mut T,
) -> LineBuilderRev<'_, T>
pub fn unsafe_builder_rev<T: Backend>( self, backend: &mut T, ) -> LineBuilderRev<'_, T>
creates reverse builder from Line push/push_styled can be used to add to line on drop pads the line to end
Trait Implementations§
Source§impl AddAssign<u16> for Line
impl AddAssign<u16> for Line
Source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
Performs the
+= operation. Read moreSource§impl AddAssign<usize> for Line
impl AddAssign<usize> for Line
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+= operation. Read moreimpl StructuralPartialEq for Line
Auto Trait Implementations§
impl Forget for Line
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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