#[non_exhaustive]pub enum LoadPolicy {
Strict,
Lenient,
}Expand description
How a load treats variables whose saved type no longer matches the scripts (spec/host/04-save.md, 4.6).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Strict
Fails with a LoadError (the default).
Lenient
Resets such variables to their declared initial values and goes back to the start of the label.
Trait Implementations§
Source§impl Clone for LoadPolicy
impl Clone for LoadPolicy
impl Copy for LoadPolicy
Source§impl Debug for LoadPolicy
impl Debug for LoadPolicy
Source§impl Default for LoadPolicy
impl Default for LoadPolicy
impl Eq for LoadPolicy
Source§impl PartialEq for LoadPolicy
impl PartialEq for LoadPolicy
impl StructuralPartialEq for LoadPolicy
Auto Trait Implementations§
impl Forget for LoadPolicy
impl Freeze for LoadPolicy
impl Move for LoadPolicy
impl RefUnwindSafe for LoadPolicy
impl Send for LoadPolicy
impl Sync for LoadPolicy
impl Unpin for LoadPolicy
impl UnsafeUnpin for LoadPolicy
impl UnwindSafe for LoadPolicy
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