pub struct OutputOptions {
pub create_dirs: bool,
pub write_only_if_changed: bool,
}Expand description
Options specific to how edres should handle its output.
Fields§
§create_dirs: boolIf true, missing destination directories will be created on output.
write_only_if_changed: boolIf 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§
Source§impl 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§
Source§impl Clone for OutputOptions
impl Clone for OutputOptions
Source§fn clone(&self) -> OutputOptions
fn clone(&self) -> OutputOptions
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 OutputOptions
impl Debug for OutputOptions
Source§impl Default for OutputOptions
impl Default for OutputOptions
Source§fn default() -> OutputOptions
fn default() -> OutputOptions
§Examples
assert_eq!(OutputOptions::default(), OutputOptions::new());Source§impl PartialEq for OutputOptions
impl PartialEq for OutputOptions
impl Eq for OutputOptions
impl StructuralPartialEq for OutputOptions
Auto Trait Implementations§
impl Freeze for OutputOptions
impl RefUnwindSafe for OutputOptions
impl Send for OutputOptions
impl Sync for OutputOptions
impl Unpin for OutputOptions
impl UnwindSafe for OutputOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.