pub struct App {
pub running: bool,
pub book_lines: Vec<String>,
pub line_index: Vec<(usize, usize)>,
pub sample_start_index: usize,
pub sample_len: usize,
pub display_line: usize,
pub text_width_percent: u16,
pub terminal_width: u16,
pub full_text_width: bool,
pub text: Text,
/* private fields */
}Fields§
§running: bool§book_lines: Vec<String>§line_index: Vec<(usize, usize)>§sample_start_index: usize§sample_len: usize§display_line: usize§text_width_percent: u16§terminal_width: u16§full_text_width: bool§text: TextImplementations§
Auto Trait Implementations§
impl Freeze for App
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more