Skip to main content

Sentinel

Trait Sentinel 

Source
pub trait Sentinel {
    // Required method
    fn sentinel() -> Self;
}
Expand description

The zero value a C return slot carries when a call fails: 0, false, 0.0, or null. Implemented for every C return type a thunk can have, () for void, and pairs and tuples of them (an async completion’s result slots).

Required Methods§

Source

fn sentinel() -> Self

The zero 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 ()

Source§

fn sentinel() -> Self

Source§

impl Sentinel for bool

Source§

fn sentinel() -> Self

Source§

impl Sentinel for f32

Source§

fn sentinel() -> Self

Source§

impl Sentinel for f64

Source§

fn sentinel() -> Self

Source§

impl Sentinel for i8

Source§

fn sentinel() -> Self

Source§

impl Sentinel for i16

Source§

fn sentinel() -> Self

Source§

impl Sentinel for i32

Source§

fn sentinel() -> Self

Source§

impl Sentinel for i64

Source§

fn sentinel() -> Self

Source§

impl Sentinel for u8

Source§

fn sentinel() -> Self

Source§

impl Sentinel for u16

Source§

fn sentinel() -> Self

Source§

impl Sentinel for u32

Source§

fn sentinel() -> Self

Source§

impl Sentinel for u64

Source§

fn sentinel() -> Self

Source§

impl Sentinel for usize

Source§

fn sentinel() -> Self

Source§

impl<A: Sentinel, B: Sentinel> Sentinel for (A, B)

Source§

fn sentinel() -> Self

Source§

impl<A: Sentinel> Sentinel for (A,)

Source§

fn sentinel() -> Self

Source§

impl<T> Sentinel for *const T

Source§

fn sentinel() -> Self

Source§

impl<T> Sentinel for *mut T

Source§

fn sentinel() -> Self

Implementors§