pub struct ContentPosition {
pub row: usize,
pub column: usize,
}Expand description
A widget’s position in its width-independent, newline-delimited content.
column is a terminal display-cell offset, not a character index.
Fields§
§row: usize§column: usizeTrait Implementations§
Source§impl Clone for ContentPosition
impl Clone for ContentPosition
Source§fn clone(&self) -> ContentPosition
fn clone(&self) -> ContentPosition
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 moreimpl Copy for ContentPosition
Source§impl Debug for ContentPosition
impl Debug for ContentPosition
Source§impl Default for ContentPosition
impl Default for ContentPosition
Source§fn default() -> ContentPosition
fn default() -> ContentPosition
Returns the “default value” for a type. Read more
impl Eq for ContentPosition
Source§impl PartialEq for ContentPosition
impl PartialEq for ContentPosition
impl StructuralPartialEq for ContentPosition
Auto Trait Implementations§
impl Freeze for ContentPosition
impl RefUnwindSafe for ContentPosition
impl Send for ContentPosition
impl Sync for ContentPosition
impl Unpin for ContentPosition
impl UnsafeUnpin for ContentPosition
impl UnwindSafe for ContentPosition
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