Skip to main content

ReactiveRepr

Trait ReactiveRepr 

pub trait ReactiveRepr: Copy {
    // Required methods
    fn to_usize(self) -> usize;
    fn from_usize(value: usize) -> Self;
}
Available on crate feature std only.
Expand description

A value that can be stored in a Reactive as a usize.

Required Methods§

fn to_usize(self) -> usize

Encode the value into the backing usize.

fn from_usize(value: usize) -> Self

Decode the value from the backing usize.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl ReactiveRepr for usize

§

fn to_usize(self) -> usize

§

fn from_usize(value: usize) -> usize

Implementors§