pub struct Editor {
pub active: bool,
pub text: Vec<u8>,
pub cursor: usize,
pub insert: bool,
pub algebraic: bool,
pub program: bool,
pub lowercase: bool,
pub alpha: bool,
pub alpha_lock: bool,
pub left_shift: bool,
pub right_shift: bool,
pub message: bool,
}Expand description
The editor as the ROM left it.
Fields§
§active: boolA command line is open (also an empty one, and in EDIT).
text: Vec<u8>The text as HP bytes, empty when no line is open.
cursor: usizeThe cursor in characters, 0 before the first.
insert: boolInsert mode (off: typing replaces the character at the cursor).
algebraic: boolAlgebraic entry mode (after ').
program: boolProgram entry mode (after «, or ENTRY).
lowercase: boolLowercase lock.
alpha: boolAlpha is on (for one key, or locked).
alpha_lock: boolAlpha is locked.
left_shift: boolThe left shift is pending.
right_shift: boolThe right shift is pending.
message: boolThe ROM shows an error: in the header (48) or in a box (49G).
Trait Implementations§
impl Eq for Editor
impl StructuralPartialEq for Editor
Auto Trait Implementations§
impl Freeze for Editor
impl RefUnwindSafe for Editor
impl Send for Editor
impl Sync for Editor
impl Unpin for Editor
impl UnsafeUnpin for Editor
impl UnwindSafe for Editor
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