Skip to main content

EmitFamily

Struct EmitFamily 

Source
pub struct EmitFamily {
    pub field_dropped: DiagnosticInfo,
    pub record_dropped: DiagnosticInfo,
    pub value_defaulted: DiagnosticInfo,
    pub value_collapsed: DiagnosticInfo,
    pub value_substituted: DiagnosticInfo,
    pub value_truncated: DiagnosticInfo,
    pub rating_set_dropped: DiagnosticInfo,
    pub extras_dropped: DiagnosticInfo,
    pub areas_dropped: DiagnosticInfo,
    pub not_a_number: DiagnosticInfo,
    pub reference_missing: DiagnosticInfo,
    pub element_relabeled: DiagnosticInfo,
}
Expand description

The write side family every target shares.

A writer’s fidelity losses are the same eleven questions for every target — what was dropped, what was defaulted, what was collapsed — so the family is declared once per target and the shared writer passes take the target’s family rather than a label they cannot turn into a code.

Fields§

§field_dropped: DiagnosticInfo

A field the target format has no column or key for.

§record_dropped: DiagnosticInfo

A whole element or record the target does not model.

§value_defaulted: DiagnosticInfo

A value the target requires and the source never stated.

§value_collapsed: DiagnosticInfo

Richer structure reduced to what the target’s one field can hold.

§value_substituted: DiagnosticInfo

A stated value replaced by another the target can represent.

§value_truncated: DiagnosticInfo

A value shortened to the target’s width, e.g. a cost curve order.

§rating_set_dropped: DiagnosticInfo

A branch rating set beyond the target’s rate_a/rate_b/rate_c.

§extras_dropped: DiagnosticInfo

Source format passthrough fields the writer does not replay.

§areas_dropped: DiagnosticInfo

The area table, which is typed rather than passthrough.

§not_a_number: DiagnosticInfo

A non-finite value written as a sentinel or a JSON null.

§reference_missing: DiagnosticInfo

The network has no reference bus for the target’s solver to key on.

§element_relabeled: DiagnosticInfo

A normalized line lands in the target’s transformer section.

Implementations§

Source§

impl EmitFamily

Source

pub fn entries(&'static self) -> [&'static DiagnosticInfo; 12]

Every entry, for the registry gates and the generated reference.

Trait Implementations§

Source§

impl Clone for EmitFamily

Source§

fn clone(&self) -> EmitFamily

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EmitFamily

Source§

impl Debug for EmitFamily

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.