Enum artichoke_backend::convert::ConvertOnError
source · pub enum ConvertOnError {
Raise,
ReturnNil,
}
Expand description
Strategy to use for handling errors in convert_type
.
Variants§
Raise
Turn conversion errors into TypeError
s.
ReturnNil
Turn conversion errors into a successful nil
value.
Trait Implementations§
source§impl Clone for ConvertOnError
impl Clone for ConvertOnError
source§fn clone(&self) -> ConvertOnError
fn clone(&self) -> ConvertOnError
Returns a copy of the value. Read more
1.0.0 · 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 ConvertOnError
impl Debug for ConvertOnError
source§impl PartialEq<ConvertOnError> for ConvertOnError
impl PartialEq<ConvertOnError> for ConvertOnError
source§fn eq(&self, other: &ConvertOnError) -> bool
fn eq(&self, other: &ConvertOnError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.