Trait SpecializationConstants

Source
pub unsafe trait SpecializationConstants {
    const ENTRIES: &'static [SpecializationMapEntry];

    // Required method
    fn as_ptr(&self) -> *const c_void;
}

Required Associated Constants§

Required Methods§

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<'s, T> SpecializationConstants for &'s T

Source§

const ENTRIES: &'static [SpecializationMapEntry] = T::ENTRIES

Source§

fn as_ptr(&self) -> *const c_void

Source§

impl<'s, T> SpecializationConstants for &'s mut T

Source§

const ENTRIES: &'static [SpecializationMapEntry] = T::ENTRIES

Source§

fn as_ptr(&self) -> *const c_void

Source§

impl<T> SpecializationConstants for Box<T>

Source§

const ENTRIES: &'static [SpecializationMapEntry] = T::ENTRIES

Source§

fn as_ptr(&self) -> *const c_void

Source§

impl<T> SpecializationConstants for Rc<T>

Source§

const ENTRIES: &'static [SpecializationMapEntry] = T::ENTRIES

Source§

fn as_ptr(&self) -> *const c_void

Source§

impl<T> SpecializationConstants for Arc<T>

Source§

const ENTRIES: &'static [SpecializationMapEntry] = T::ENTRIES

Source§

fn as_ptr(&self) -> *const c_void

Source§

impl<T> SpecializationConstants for ManuallyDrop<T>

Source§

const ENTRIES: &'static [SpecializationMapEntry] = T::ENTRIES

Source§

fn as_ptr(&self) -> *const c_void

Implementors§