pub struct StateConfig {
pub schema: Option<Arc<Schema>>,
pub doc: Option<Arc<NodePool>>,
pub stored_marks: Option<Vec<Mark>>,
pub plugins: Option<Vec<Arc<Plugin>>>,
}
Expand description
状态配置结构体,用于初始化编辑器状态
- schema: 文档结构定义
- doc: 初始文档内容
- stored_marks: 存储的标记
- plugins: 插件列表
Fields§
§schema: Option<Arc<Schema>>
§doc: Option<Arc<NodePool>>
§stored_marks: Option<Vec<Mark>>
§plugins: Option<Vec<Arc<Plugin>>>
Auto Trait Implementations§
impl Freeze for StateConfig
impl !RefUnwindSafe for StateConfig
impl Send for StateConfig
impl Sync for StateConfig
impl Unpin for StateConfig
impl !UnwindSafe for StateConfig
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