pub struct DiagnosticsConfig {
pub dump_dir: PathBuf,
pub format: DumpFormat,
pub categories: HashMap<DiagCategory, IterSpec>,
pub iterate_variant: IterateVariant,
pub kkt_variant: KktVariant,
}Expand description
Static configuration: where to dump, in what format, with what per-category iter filters. Constructed by the CLI, held by the application, frozen for the duration of a solve.
Fields§
§dump_dir: PathBuf§format: DumpFormat§categories: HashMap<DiagCategory, IterSpec>§iterate_variant: IterateVariantPayload-detail for DiagCategory::Iterate. Only consulted
when Iterate is in categories.
kkt_variant: KktVariantPayload-detail for DiagCategory::Kkt. Only consulted when
Kkt is in categories.
Implementations§
Source§impl DiagnosticsConfig
impl DiagnosticsConfig
pub fn new(dump_dir: PathBuf) -> Self
pub fn with_category(self, cat: DiagCategory, spec: IterSpec) -> Self
pub fn with_iterate_variant(self, v: IterateVariant) -> Self
pub fn with_kkt_variant(self, v: KktVariant) -> Self
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for DiagnosticsConfig
impl Clone for DiagnosticsConfig
Source§fn clone(&self) -> DiagnosticsConfig
fn clone(&self) -> DiagnosticsConfig
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 moreAuto Trait Implementations§
impl Freeze for DiagnosticsConfig
impl RefUnwindSafe for DiagnosticsConfig
impl Send for DiagnosticsConfig
impl Sync for DiagnosticsConfig
impl Unpin for DiagnosticsConfig
impl UnsafeUnpin for DiagnosticsConfig
impl UnwindSafe for DiagnosticsConfig
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