Skip to main content

Sentinel

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".

Implementations on Foreign Types§

Source§

impl Sentinel for i8

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for i16

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for i32

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for i64

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for i128

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for isize

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for u8

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for u16

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for u32

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for u64

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for u128

Source§

const SENTINEL: Self = 0

Source§

impl Sentinel for usize

Source§

const SENTINEL: Self = 0

Source§

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

Source§

const SENTINEL: Self = None

Source§

impl<T> Sentinel for *const T

Source§

const SENTINEL: Self

Source§

impl<T> Sentinel for *mut T

Source§

const SENTINEL: Self

Implementors§