pub struct Editor<S>where
S: System,{ /* private fields */ }
Expand description
The main editor state.
Implementations§
Source§impl Editor<DefaultSystem>
impl Editor<DefaultSystem>
Sourcepub fn new(
cfg: Config,
plumbing_rules: PlumbingRules,
mode: EditorMode,
log_buffer: LogBuffer,
) -> Self
pub fn new( cfg: Config, plumbing_rules: PlumbingRules, mode: EditorMode, log_buffer: LogBuffer, ) -> Self
Construct a new Editor with the provided config.
Source§impl<S> Editor<S>where
S: System,
impl<S> Editor<S>where
S: System,
Sourcepub fn new_with_system(
cfg: Config,
plumbing_rules: PlumbingRules,
mode: EditorMode,
log_buffer: LogBuffer,
system: S,
) -> Self
pub fn new_with_system( cfg: Config, plumbing_rules: PlumbingRules, mode: EditorMode, log_buffer: LogBuffer, system: S, ) -> Self
Construct a new Editor with the provided config and System.
Sourcepub fn active_buffer_id(&self) -> usize
pub fn active_buffer_id(&self) -> usize
The id of the currently active buffer
Sourcepub fn run(self)
pub fn run(self)
Initialise any UI state required for our EditorMode and run the main event loop.
Sourcepub fn set_status_message(&mut self, msg: &str)
pub fn set_status_message(&mut self, msg: &str)
Update the status line to contain the given message.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Editor<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Editor<S>
impl<S> !Send for Editor<S>
impl<S> !Sync for Editor<S>
impl<S> Unpin for Editor<S>where
S: Unpin,
impl<S> !UnwindSafe for Editor<S>
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