Skip to main content

LoadReport

Struct LoadReport 

Source
#[non_exhaustive]
pub struct LoadReport {
Show 15 fields pub resolved_by: ResolvedBy, pub added_vars: Vec<String>, pub removed_vars: Vec<String>, pub type_changed_vars: Vec<String>, pub changed_types: Vec<String>, pub type_changed_locals: Vec<String>, pub ignored_slices: Vec<String>, pub defaulted_slices: Vec<String>, pub migrated_slices: Vec<String>, pub changed_rules: Vec<String>, pub from_schema_version: u32, pub to_schema_version: u32, pub migrated_vars: Vec<String>, pub migrate_failed_vars: Vec<String>, pub persistent: Option<PersistentReport>,
}
Expand description

The report of a load.

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.
§resolved_by: ResolvedBy

How the position was found. When there is a call stack, the least reliable method among the stop point and the call lines (Hash is less reliable than Id, Ordinal than Hash, LabelStart than Ordinal).

§added_vars: Vec<String>

Variables filled with default values (module.variable; only save vars; persistent vars are in the persistent data report).

§removed_vars: Vec<String>

Variables that were removed from the scripts and discarded (module.variable).

§type_changed_vars: Vec<String>

Variables whose type changed (module.variable; if any, it goes back to the start of the label).

§changed_types: Vec<String>

structs and enums whose declarations changed (module.TypeName; including types that contain changed types). Variables holding values of those types go into type_changed_vars.

§type_changed_locals: Vec<String>

Local variables whose type changed (module.label.variable; the current label and the label of each call stack frame; if any, it goes back to the start of the label). When only names or counts changed, they do not appear here (resolved_by becomes LabelStart).

§ignored_slices: Vec<String>

Slices of packages that are not registered, which were ignored (package names).

§defaulted_slices: Vec<String>

Packages’ state slices that were not in the save and got default values (State::default()) (package names).

§migrated_slices: Vec<String>

Packages’ state slices whose versions differed and were migrated with migrate (package names).

§changed_rules: Vec<String>

Packages whose rule version (Package::RULES_VERSION) differs from when saved (package names, in registration order). Execution continues with the current rules, so the same command with the same arguments may give a different result than before the save. Packages that were not in the save are not included.

§from_schema_version: u32

The schema version of the save.

§to_schema_version: u32

The schema version of the scripts.

§migrated_vars: Vec<String>

Variables converted by migrate (module.variable; renamed variables have the new name).

§migrate_failed_vars: Vec<String>

Variables whose migrate conversion failed and were reset to their initial values under LoadPolicy::Lenient (if any, it goes back to the start of the label).

§persistent: Option<PersistentReport>

The report from reading the persistent data in VmConfig::persistent (None if not given).

Trait Implementations§

Source§

impl Clone for LoadReport

Source§

fn clone(&self) -> Self

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 Debug for LoadReport

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for LoadReport

Source§

impl PartialEq for LoadReport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LoadReport

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.