Skip to main content

ReadableCompositionLocal

Trait ReadableCompositionLocal 

Source
pub trait ReadableCompositionLocal<T> {
    // Required method
    fn read_current(&self) -> T;
}
Expand description

A composition local whose current value a computed local can read; see CompositionLocalAccessorScope.

Required Methods§

Source

fn read_current(&self) -> T

The local’s value where it is read, as current gives it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§