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>>>,
pub resource_manager: Option<Arc<GlobalResourceManager>>,
}
Expand description
状态配置结构体,用于初始化编辑器状态
- 结构定义: 文档结构定义
- 文档内容: 初始文档内容
- 存储标记: 存储的标记
- 插件列表: 插件列表
Fields§
§schema: Option<Arc<Schema>>
§doc: Option<Arc<NodePool>>
§stored_marks: Option<Vec<Mark>>
§plugins: Option<Vec<Arc<Plugin>>>
§resource_manager: Option<Arc<GlobalResourceManager>>
Trait Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more