Trait EmptySliceRef

Source
pub trait EmptySliceRef {
    // Required method
    fn empty_slice_ref<'a>() -> &'a Self;
}

Required Methods§

Source

fn empty_slice_ref<'a>() -> &'a Self

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 EmptySliceRef for &[u8]

Source§

fn empty_slice_ref<'b>() -> &'b Self

Source§

impl EmptySliceRef for Vec<u8>

Source§

fn empty_slice_ref<'a>() -> &'a Self

Source§

impl EmptySliceRef for Bytes

Source§

fn empty_slice_ref<'a>() -> &'a Self

Implementors§