pub struct HistoryView {
pub undo: usize,
pub redo: usize,
pub undo_list: Vec<Value>,
pub redo_list: Vec<Value>,
}Expand description
元に戻せる段・やり直せる段の数と、その変更(undo_list は新しい順、redo_list は次にやり直す順)。
undo・redo・history の結果と、系を変える要求の結果に入る
Fields§
§undo: usize§redo: usize§undo_list: Vec<Value>段の変更の短い記述({"set": [...]}・{"edit": [...]}・{"open": ...} など)
redo_list: Vec<Value>Trait Implementations§
Source§impl Clone for HistoryView
impl Clone for HistoryView
Source§impl Debug for HistoryView
impl Debug for HistoryView
Source§impl Default for HistoryView
impl Default for HistoryView
Source§impl<'de> Deserialize<'de> for HistoryView
impl<'de> Deserialize<'de> for HistoryView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HistoryView
impl PartialEq for HistoryView
Source§impl Serialize for HistoryView
impl Serialize for HistoryView
impl StructuralPartialEq for HistoryView
Auto Trait Implementations§
impl Freeze for HistoryView
impl RefUnwindSafe for HistoryView
impl Send for HistoryView
impl Sync for HistoryView
impl Unpin for HistoryView
impl UnsafeUnpin for HistoryView
impl UnwindSafe for HistoryView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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