pub struct MsgBackState {
pub history: Vec<MsgBackEntry>,
pub history_cnt_max: usize,
pub history_cnt: usize,
pub history_start_pos: usize,
pub history_insert_pos: usize,
pub history_last_pos: usize,
pub new_msg_flag: bool,
}Fields§
§history: Vec<MsgBackEntry>§history_cnt_max: usize§history_cnt: usize§history_start_pos: usize§history_insert_pos: usize§history_last_pos: usize§new_msg_flag: boolImplementations§
Source§impl MsgBackState
impl MsgBackState
pub fn set_history_cnt_max(&mut self, max_count: usize)
pub fn clear(&mut self)
pub fn ordered_history_indices(&self) -> Vec<usize>
pub fn next(&mut self)
pub fn add_koe( &mut self, koe_no: i64, chara_no: i64, scn_no: i64, line_no: i64, ) -> bool
pub fn add_name( &mut self, original_name: &str, disp_name: &str, scn_no: i64, line_no: i64, ) -> bool
pub fn add_msg( &mut self, msg: &str, debug_msg: &str, scn_no: i64, line_no: i64, ) -> bool
pub fn add_new_line_indent(&mut self, scn_no: i64, line_no: i64) -> bool
pub fn add_new_line_no_indent(&mut self, scn_no: i64, line_no: i64) -> bool
pub fn add_pct(&mut self, file_name: &str, x: i32, y: i32) -> bool
pub fn current_entry(&self) -> Option<&MsgBackEntry>
Trait Implementations§
Source§impl Clone for MsgBackState
impl Clone for MsgBackState
Source§fn clone(&self) -> MsgBackState
fn clone(&self) -> MsgBackState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MsgBackState
impl Debug for MsgBackState
Auto Trait Implementations§
impl Freeze for MsgBackState
impl RefUnwindSafe for MsgBackState
impl Send for MsgBackState
impl Sync for MsgBackState
impl Unpin for MsgBackState
impl UnsafeUnpin for MsgBackState
impl UnwindSafe for MsgBackState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.