pub enum PreparationPolicy {
Strict,
BestEffort,
}Expand description
What preparing a formula does with a reference to a sheet or table that does not exist (#454, docs/preparation-error-policy.md).
Variants§
Strict
Preparation fails (“Sheet not found”, “Undefined table”), as before 0.10. Explicit opt-in.
BestEffort
The default. The formula is accepted with the reference unbound (it evaluates to an error) and re-binds when the sheet or table is added, like an undefined name does under either policy.
Trait Implementations§
Source§impl Clone for PreparationPolicy
impl Clone for PreparationPolicy
impl Copy for PreparationPolicy
Source§impl Debug for PreparationPolicy
impl Debug for PreparationPolicy
Source§impl Default for PreparationPolicy
impl Default for PreparationPolicy
impl Eq for PreparationPolicy
Source§impl PartialEq for PreparationPolicy
impl PartialEq for PreparationPolicy
impl StructuralPartialEq for PreparationPolicy
Auto Trait Implementations§
impl Freeze for PreparationPolicy
impl RefUnwindSafe for PreparationPolicy
impl Send for PreparationPolicy
impl Sync for PreparationPolicy
impl Unpin for PreparationPolicy
impl UnsafeUnpin for PreparationPolicy
impl UnwindSafe for PreparationPolicy
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more