Skip to main content

IntoRegisterValueOption

Trait IntoRegisterValueOption 

Source
pub trait IntoRegisterValueOption<T>: Sized {
    // Required method
    fn into_register_value_option(self) -> Option<RegisterValue>;
}
Expand description

Creates an Option<RegisterValue> from some type T. Useful for Register getter closures

Required Methods§

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 IntoRegisterValueOption<Option<RegisterValue>> for ()

Source§

impl IntoRegisterValueOption<Option<RegisterValue>> for Option<Number>

Source§

impl IntoRegisterValueOption<Option<RegisterValue>> for Option<RegisterValue>

Source§

impl IntoRegisterValueOption<Option<RegisterValue>> for Option<Token>

Source§

impl IntoRegisterValueOption<Option<RegisterValue>> for usize

Implementors§