pub enum CascadeStrategy {
TryToAddDerive,
TryToCallNew,
SkipAndReport,
ImmediateError,
}Expand description
Strategy for handling cascade failures.
Variants§
TryToAddDerive
Try to add derive to dependent types recursively.
TryToCallNew
Try to generate manual impl blocks that call new().
SkipAndReport
Skip the failing type and report it.
ImmediateError
Stop immediately on first failure.
Trait Implementations§
Source§impl Clone for CascadeStrategy
impl Clone for CascadeStrategy
Source§fn clone(&self) -> CascadeStrategy
fn clone(&self) -> CascadeStrategy
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 CascadeStrategy
impl Debug for CascadeStrategy
Source§impl Default for CascadeStrategy
impl Default for CascadeStrategy
Source§fn default() -> CascadeStrategy
fn default() -> CascadeStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for CascadeStrategy
impl PartialEq for CascadeStrategy
Source§fn eq(&self, other: &CascadeStrategy) -> bool
fn eq(&self, other: &CascadeStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CascadeStrategy
impl Eq for CascadeStrategy
impl StructuralPartialEq for CascadeStrategy
Auto Trait Implementations§
impl Freeze for CascadeStrategy
impl RefUnwindSafe for CascadeStrategy
impl Send for CascadeStrategy
impl Sync for CascadeStrategy
impl Unpin for CascadeStrategy
impl UnsafeUnpin for CascadeStrategy
impl UnwindSafe for CascadeStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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