#[non_exhaustive]pub struct VipeBuilder { /* private fields */ }Expand description
Builder for Vipe. All chain methods are #[must_use].
Implementations§
Source§impl VipeBuilder
impl VipeBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new builder defaulting to EditorSource::EnvLookup,
.txt suffix, Default mode.
Sourcepub fn editor(self, editor: EditorSource) -> Self
pub fn editor(self, editor: EditorSource) -> Self
Set the editor source.
Sourcepub fn suffix(self, suffix: impl Into<String>) -> Self
pub fn suffix(self, suffix: impl Into<String>) -> Self
Set the tempfile suffix. Empty string means literally no extension.
Sourcepub fn compat(self, compat: CompatibilityMode) -> Self
pub fn compat(self, compat: CompatibilityMode) -> Self
Set the compatibility mode.
Trait Implementations§
Source§impl Clone for VipeBuilder
impl Clone for VipeBuilder
Source§fn clone(&self) -> VipeBuilder
fn clone(&self) -> VipeBuilder
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 VipeBuilder
impl Debug for VipeBuilder
Auto Trait Implementations§
impl Freeze for VipeBuilder
impl RefUnwindSafe for VipeBuilder
impl Send for VipeBuilder
impl Sync for VipeBuilder
impl Unpin for VipeBuilder
impl UnsafeUnpin for VipeBuilder
impl UnwindSafe for VipeBuilder
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