pub enum PanicStrategy {
Unwind,
Abort,
}Expand description
Represents the possible values for the panic setting
Variants§
Trait Implementations§
Source§impl Clone for PanicStrategy
impl Clone for PanicStrategy
Source§fn clone(&self) -> PanicStrategy
fn clone(&self) -> PanicStrategy
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 moreimpl Copy for PanicStrategy
Source§impl Debug for PanicStrategy
impl Debug for PanicStrategy
Source§impl Display for PanicStrategy
impl Display for PanicStrategy
Source§impl PartialEq for PanicStrategy
impl PartialEq for PanicStrategy
Source§fn eq(&self, other: &PanicStrategy) -> bool
fn eq(&self, other: &PanicStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PanicStrategy
Source§impl<'a> TryFrom<&'a str> for PanicStrategy
impl<'a> TryFrom<&'a str> for PanicStrategy
Auto Trait Implementations§
impl Freeze for PanicStrategy
impl RefUnwindSafe for PanicStrategy
impl Send for PanicStrategy
impl Sync for PanicStrategy
impl Unpin for PanicStrategy
impl UnsafeUnpin for PanicStrategy
impl UnwindSafe for PanicStrategy
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> DependencyExt for Twhere
T: Display,
impl<T> DependencyExt for Twhere
T: Display,
Source§fn version(&self, version: &str) -> Dependency
fn version(&self, version: &str) -> Dependency
Constructs a
Dependency using self.to_string() as the name, and version as the
semver version Read moreSource§fn repo(&self, repo: &str) -> Dependency
fn repo(&self, repo: &str) -> Dependency
Constructs a
Dependency using self.to_string() as the name, and repo as the git
repository Read moreSource§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