pub enum FallibleKind {
Option,
Result,
}Expand description
A standard library fallible container established by the compiler.
This is deliberately narrower than a general algebraic-data-type category:
registered rules must not treat a project enum with similarly named arms as
a Result or Option.
Variants§
Option
core::option::Option or its standard-library re-export.
Result
core::result::Result or its standard-library re-export.
Implementations§
Trait Implementations§
Source§impl Clone for FallibleKind
impl Clone for FallibleKind
Source§fn clone(&self) -> FallibleKind
fn clone(&self) -> FallibleKind
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 FallibleKind
Source§impl Debug for FallibleKind
impl Debug for FallibleKind
Source§impl<'de> Deserialize<'de> for FallibleKind
impl<'de> Deserialize<'de> for FallibleKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FallibleKind
Source§impl PartialEq for FallibleKind
impl PartialEq for FallibleKind
Source§impl Serialize for FallibleKind
impl Serialize for FallibleKind
impl StructuralPartialEq for FallibleKind
Auto Trait Implementations§
impl Freeze for FallibleKind
impl RefUnwindSafe for FallibleKind
impl Send for FallibleKind
impl Sync for FallibleKind
impl Unpin for FallibleKind
impl UnsafeUnpin for FallibleKind
impl UnwindSafe for FallibleKind
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