Trait proc_bitfield::Try
source · pub trait Try {
type Output;
type WithOutput<T>: Try;
// Required method
fn from_output(output: Self::Output) -> Self;
}
Expand description
Equivalent of core::ops::Try
that doesn’t require nightly and allows changing the output
type using a GAT (logically depends on core::ops::Try
, but doesn’t have an explicit
dependency as it’s unstable).
Automatically implemented for Option
Required Associated Types§
type Output
type WithOutput<T>: Try
Required Methods§
fn from_output(output: Self::Output) -> Self
Object Safety§
This trait is not object safe.