Trait RefValue

Source
pub trait RefValue<T> {
    // Required method
    fn try_ref<'a>(data: &'a T, ctrl: &QueryExtCtrl) -> Option<&'a Self>;
}

Required Methods§

Source

fn try_ref<'a>(data: &'a T, ctrl: &QueryExtCtrl) -> Option<&'a Self>

Get reference to 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 RefValue<ExtControl> for str

Source§

fn try_ref<'a>(data: &'a ExtControl, ctrl: &QueryExtCtrl) -> Option<&'a Self>

Source§

impl<const N: usize, T: IsPlainCtrlData> RefValue<ExtControl> for [T; N]

Source§

fn try_ref<'a>(data: &'a ExtControl, ctrl: &QueryExtCtrl) -> Option<&'a Self>

Source§

impl<const N: usize, const M: usize, T: IsPlainCtrlData> RefValue<ExtControl> for [[T; N]; M]

Source§

fn try_ref<'a>(data: &'a ExtControl, ctrl: &QueryExtCtrl) -> Option<&'a Self>

Source§

impl<const N: usize, const M: usize, const L: usize, T: IsPlainCtrlData> RefValue<ExtControl> for [[[T; N]; M]; L]

Source§

fn try_ref<'a>(data: &'a ExtControl, ctrl: &QueryExtCtrl) -> Option<&'a Self>

Source§

impl<const N: usize, const M: usize, const L: usize, const O: usize, T: IsPlainCtrlData> RefValue<ExtControl> for [[[[T; N]; M]; L]; O]

Source§

fn try_ref<'a>(data: &'a ExtControl, ctrl: &QueryExtCtrl) -> Option<&'a Self>

Implementors§