pub struct EditorEngine { /* private fields */ }Implementations§
Source§impl EditorEngine
impl EditorEngine
pub fn new() -> Self
pub fn state(&self) -> &EditorState
pub fn state_mut(&mut self) -> &mut EditorState
pub fn handle_action(&mut self, action: EditorAction)
Sourcepub fn load_from_file<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
pub fn load_from_file<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
Load editor state from a file
Sourcepub fn default_file_path() -> PathBuf
pub fn default_file_path() -> PathBuf
Get default config file path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditorEngine
impl RefUnwindSafe for EditorEngine
impl Send for EditorEngine
impl Sync for EditorEngine
impl Unpin for EditorEngine
impl UnwindSafe for EditorEngine
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