Struct edres::OutputOptions
source · [−]Expand description
Options specific to how edres
should handle its output.
Fields
create_dirs: bool
If true, missing destination directories will be created on output.
write_only_if_changed: bool
If true, files will only be written if they have changed.
Generation will still take place. This is not an
optimization, but it can be used to avoid unintentionally
triggering any processes that watch for changes. (For
example, cargo watch
.)
Implementations
sourceimpl OutputOptions
impl OutputOptions
sourcepub const fn new() -> OutputOptions
pub const fn new() -> OutputOptions
Examples
assert_eq!(OutputOptions::new(), OutputOptions {
create_dirs: true,
write_only_if_changed: true,
});
Trait Implementations
sourceimpl Clone for OutputOptions
impl Clone for OutputOptions
sourcefn clone(&self) -> OutputOptions
fn clone(&self) -> OutputOptions
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OutputOptions
impl Debug for OutputOptions
sourceimpl Default for OutputOptions
impl Default for OutputOptions
sourcefn default() -> OutputOptions
fn default() -> OutputOptions
Examples
assert_eq!(OutputOptions::default(), OutputOptions::new());
sourceimpl PartialEq<OutputOptions> for OutputOptions
impl PartialEq<OutputOptions> for OutputOptions
sourcefn eq(&self, other: &OutputOptions) -> bool
fn eq(&self, other: &OutputOptions) -> bool
impl Eq for OutputOptions
impl StructuralEq for OutputOptions
impl StructuralPartialEq for OutputOptions
Auto Trait Implementations
impl RefUnwindSafe for OutputOptions
impl Send for OutputOptions
impl Sync for OutputOptions
impl Unpin for OutputOptions
impl UnwindSafe for OutputOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.