#[non_exhaustive]pub struct ContingencyResolution {
pub cases: Vec<ResolvedCase>,
pub resolved: usize,
pub unresolved: usize,
pub unrecognized_statements: usize,
}Expand description
What a whole contingency set bound to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cases: Vec<ResolvedCase>One entry per case of the set, in the set’s order.
resolved: usizeCases whose every action bound.
unresolved: usizeCases holding at least one action that did not bind.
unrecognized_statements: usizeActions the reader kept as text, counted over every case.
Implementations§
Source§impl ContingencyResolution
impl ContingencyResolution
Sourcepub fn diagnostics(&self) -> Vec<Diagnostic>
pub fn diagnostics(&self) -> Vec<Diagnostic>
One BUILD.CON.CASE_UNRESOLVED note per unresolved case, naming the
case and the first action of it that did not bind.
The notes stop at the reader’s budget: the first case past it records
one BUILD.CON.NOTES_TRUNCATED in place of its note and the cases
after that record nothing, so a set resolved against the wrong network
cannot grow the note list without limit. Every case is still counted.
Trait Implementations§
Source§impl Clone for ContingencyResolution
impl Clone for ContingencyResolution
Source§fn clone(&self) -> ContingencyResolution
fn clone(&self) -> ContingencyResolution
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 ContingencyResolution
impl Debug for ContingencyResolution
Source§impl Default for ContingencyResolution
impl Default for ContingencyResolution
Source§fn default() -> ContingencyResolution
fn default() -> ContingencyResolution
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContingencyResolution
impl PartialEq for ContingencyResolution
Source§fn eq(&self, other: &ContingencyResolution) -> bool
fn eq(&self, other: &ContingencyResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContingencyResolution
Auto Trait Implementations§
impl Freeze for ContingencyResolution
impl RefUnwindSafe for ContingencyResolution
impl Send for ContingencyResolution
impl Sync for ContingencyResolution
impl Unpin for ContingencyResolution
impl UnsafeUnpin for ContingencyResolution
impl UnwindSafe for ContingencyResolution
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