pub enum InitialEditorStateType {
Null,
Json(String),
Serialized(Value),
EditorState(EditorState),
Update(InitialEditorStateFn),
}Expand description
InitialEditorStateType: how InitialStateExtension fills a new editor.
Variants§
Null
null: leave the root as it is, empty.
Json(String)
An editor state serialized to a JSON string.
Serialized(Value)
A serialized editor state (SerializedEditorState), already parsed.
EditorState(EditorState)
An editor state that has been deserialized already.
Update(InitialEditorStateFn)
A function that updates the editor, called once inside an update.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InitialEditorStateType
impl !Send for InitialEditorStateType
impl !Sync for InitialEditorStateType
impl !UnwindSafe for InitialEditorStateType
impl Forget for InitialEditorStateType
impl Freeze for InitialEditorStateType
impl Move for InitialEditorStateType
impl Unpin for InitialEditorStateType
impl UnsafeUnpin for InitialEditorStateType
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