pub struct UndoConfig {
pub max_entries: usize,
pub max_file_bytes: u64,
}Fields§
§max_entries: usize§max_file_bytes: u64Files larger than this (decoded bytes) get no undo entry — the undo
log stores a full copy of the original text, which dominates the
cost of editing very large files. 0 disables the cap.
Trait Implementations§
Source§impl Clone for UndoConfig
impl Clone for UndoConfig
Source§fn clone(&self) -> UndoConfig
fn clone(&self) -> UndoConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoConfig
impl Debug for UndoConfig
Source§impl Default for UndoConfig
impl Default for UndoConfig
Source§impl<'de> Deserialize<'de> for UndoConfig
impl<'de> Deserialize<'de> for UndoConfig
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
Auto Trait Implementations§
impl Freeze for UndoConfig
impl RefUnwindSafe for UndoConfig
impl Send for UndoConfig
impl Sync for UndoConfig
impl Unpin for UndoConfig
impl UnsafeUnpin for UndoConfig
impl UnwindSafe for UndoConfig
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