conv::misc

Trait InvalidSentinel

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl InvalidSentinel for f32

Source§

impl InvalidSentinel for f64

Implementors§