pub trait InvalidSentinel {
// Required method
fn invalid_sentinel() -> Self;
}
Expand description
This trait indicates that a type has an “invalid” sentinel value.
This is used by the errors::UnwrapOrInvalid
extension trait.
Required Methods§
Sourcefn invalid_sentinel() -> Self
fn invalid_sentinel() -> Self
Returns the type’s “invalid” sentinel value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.