pub struct EditorBase {
pub event_bus: EventBus,
pub state: Arc<State>,
pub extension_manager: ExtensionManager,
pub history_manager: HistoryManager<Arc<State>>,
pub options: EditorOptions,
}
Expand description
编辑器的基础结构,包含共享字段
Fields§
§event_bus: EventBus
§state: Arc<State>
§extension_manager: ExtensionManager
§history_manager: HistoryManager<Arc<State>>
§options: EditorOptions
Implementations§
Source§impl EditorBase
impl EditorBase
pub fn get_options(&self) -> &EditorOptions
pub fn get_state(&self) -> &Arc<State>
pub fn get_schema(&self) -> Arc<Schema>
pub fn get_event_bus(&self) -> &EventBus
pub fn get_tr(&self) -> Transaction
pub fn undo(&mut self)
pub fn redo(&mut self)
Auto Trait Implementations§
impl Freeze for EditorBase
impl !RefUnwindSafe for EditorBase
impl Send for EditorBase
impl Sync for EditorBase
impl !Unpin for EditorBase
impl !UnwindSafe for EditorBase
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