Trait Sentinel

Source
pub trait Sentinel: Eq {
    const SENTINEL: Self;
}
Expand description

Implemented for types which has a sentinel value.

Required Associated Constants§

Source

const SENTINEL: Self

Obtains the 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 Sentinel for i8

Source§

const SENTINEL: Self = 0i8

Source§

impl Sentinel for i16

Source§

const SENTINEL: Self = 0i16

Source§

impl Sentinel for i32

Source§

const SENTINEL: Self = 0i32

Source§

impl Sentinel for i64

Source§

const SENTINEL: Self = 0i64

Source§

impl Sentinel for i128

Source§

const SENTINEL: Self = 0i128

Source§

impl Sentinel for isize

Source§

const SENTINEL: Self = 0isize

Source§

impl Sentinel for u8

Source§

const SENTINEL: Self = 0u8

Source§

impl Sentinel for u16

Source§

const SENTINEL: Self = 0u16

Source§

impl Sentinel for u32

Source§

const SENTINEL: Self = 0u32

Source§

impl Sentinel for u64

Source§

const SENTINEL: Self = 0u64

Source§

impl Sentinel for u128

Source§

const SENTINEL: Self = 0u128

Source§

impl Sentinel for usize

Source§

const SENTINEL: Self = 0usize

Source§

impl<T> Sentinel for *const T

Source§

const SENTINEL: Self

Source§

impl<T> Sentinel for *mut T

Source§

const SENTINEL: Self

Source§

impl<T: Eq> Sentinel for Option<T>

Source§

const SENTINEL: Self = None

Implementors§