pub struct OptionReset {
pub name: String,
pub old_value: String,
pub default_value: String,
pub scope: OptionScopeId,
}Expand description
An option was reset to its default value.
Emitted when an option is reset via :set option& or OptionRegistry::reset().
Fields§
§name: StringOption name that was reset.
old_value: StringPrevious value (before reset).
default_value: StringDefault value (after reset).
scope: OptionScopeIdRuntime scope where the reset was applied (which specific buffer or window).
This is the runtime context, NOT the option’s static scope declaration
(see OptionSpec::scope for the capability declaration).
Trait Implementations§
Source§impl Clone for OptionReset
impl Clone for OptionReset
Source§fn clone(&self) -> OptionReset
fn clone(&self) -> OptionReset
Returns a duplicate of the value. Read more
1.0.0 · 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 OptionReset
impl Debug for OptionReset
Source§impl Event for OptionReset
impl Event for OptionReset
Source§impl PartialEq for OptionReset
impl PartialEq for OptionReset
impl Eq for OptionReset
impl StructuralPartialEq for OptionReset
Auto Trait Implementations§
impl Freeze for OptionReset
impl RefUnwindSafe for OptionReset
impl Send for OptionReset
impl Sync for OptionReset
impl Unpin for OptionReset
impl UnsafeUnpin for OptionReset
impl UnwindSafe for OptionReset
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