Enum workspace2::pane::SaveIntent
source · pub enum SaveIntent {
Save,
SaveAll,
SaveAs,
Close,
Overwrite,
Skip,
}
Variants§
Save
write all files (even if unchanged) prompt before overwriting on-disk changes
SaveAll
write any files that have local changes prompt before overwriting on-disk changes
SaveAs
always prompt for a new path
Close
prompt “you have unsaved changes” before writing
Overwrite
write all dirty files, don’t prompt on conflict
Skip
skip all save-related behavior
Trait Implementations§
source§impl Clone for SaveIntent
impl Clone for SaveIntent
source§fn clone(&self) -> SaveIntent
fn clone(&self) -> SaveIntent
Returns a copy 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 SaveIntent
impl Debug for SaveIntent
source§impl<'de> Deserialize<'de> for SaveIntent
impl<'de> Deserialize<'de> for SaveIntent
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<SaveIntent> for SaveIntent
impl PartialEq<SaveIntent> for SaveIntent
source§fn eq(&self, other: &SaveIntent) -> bool
fn eq(&self, other: &SaveIntent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SaveIntent
impl StructuralPartialEq for SaveIntent
Auto Trait Implementations§
impl RefUnwindSafe for SaveIntent
impl Send for SaveIntent
impl Sync for SaveIntent
impl Unpin for SaveIntent
impl UnwindSafe for SaveIntent
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> 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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.