pub enum EditPathStrategy {
MakeTmp,
GivePath(PathBuf),
}
Expand description
How to select which file to open.
Variants§
Implementations§
Source§impl EditPathStrategy
impl EditPathStrategy
Sourcepub fn file_path(self) -> Result<EditPathStrategyOut>
pub fn file_path(self) -> Result<EditPathStrategyOut>
Return a path to edit a file at.
MakeTmp
uses the tempfile
crate, which uses RAII handles for
its temporary files.
All this is hidden inside the [EditPathStrategyTmpRAII
].
Keep it until you are through editing, then drop it.
Trait Implementations§
Source§impl Clone for EditPathStrategy
impl Clone for EditPathStrategy
Source§fn clone(&self) -> EditPathStrategy
fn clone(&self) -> EditPathStrategy
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 EditPathStrategy
impl Debug for EditPathStrategy
Source§impl Default for EditPathStrategy
impl Default for EditPathStrategy
Source§fn default() -> EditPathStrategy
fn default() -> EditPathStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditPathStrategy
impl RefUnwindSafe for EditPathStrategy
impl Send for EditPathStrategy
impl Sync for EditPathStrategy
impl Unpin for EditPathStrategy
impl UnwindSafe for EditPathStrategy
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