pub enum EditorSource {
New,
File(PathBuf),
Predefined(String),
}Expand description
Where the recipe being edited came from.
Variants§
New
Brand-new recipe, never saved.
File(PathBuf)
Loaded from a user file on disk.
Predefined(String)
Cloned from a built-in predefined recipe.
Trait Implementations§
Source§impl Clone for EditorSource
impl Clone for EditorSource
Source§fn clone(&self) -> EditorSource
fn clone(&self) -> EditorSource
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 EditorSource
impl Debug for EditorSource
Source§impl PartialEq for EditorSource
impl PartialEq for EditorSource
impl StructuralPartialEq for EditorSource
Auto Trait Implementations§
impl Freeze for EditorSource
impl RefUnwindSafe for EditorSource
impl Send for EditorSource
impl Sync for EditorSource
impl Unpin for EditorSource
impl UnsafeUnpin for EditorSource
impl UnwindSafe for EditorSource
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