pub struct LoadReport {
pub unknown_globals: Vec<String>,
}Expand description
What Story::load_state couldn’t apply, so a host can surface it rather
than have data silently vanish. Globals whose name no longer exists are
dropped (no slot to hold them) and reported here. Visit/turn counts are
never dropped — counts for scopes the current program lacks are retained
harmlessly (unused until/unless the scope returns), so they aren’t reported.
Fields§
§unknown_globals: Vec<String>Saved global names with no matching global in the current program.
Implementations§
Trait Implementations§
Source§impl Clone for LoadReport
impl Clone for LoadReport
Source§fn clone(&self) -> LoadReport
fn clone(&self) -> LoadReport
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 LoadReport
impl Debug for LoadReport
Source§impl Default for LoadReport
impl Default for LoadReport
Source§fn default() -> LoadReport
fn default() -> LoadReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for LoadReport
impl PartialEq for LoadReport
Source§fn eq(&self, other: &LoadReport) -> bool
fn eq(&self, other: &LoadReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoadReport
impl Serialize for LoadReport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LoadReport
Auto Trait Implementations§
impl Freeze for LoadReport
impl RefUnwindSafe for LoadReport
impl Send for LoadReport
impl Sync for LoadReport
impl Unpin for LoadReport
impl UnsafeUnpin for LoadReport
impl UnwindSafe for LoadReport
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