Skip to main content

RestorablePrimitiveValue

Trait RestorablePrimitiveValue 

Source
pub trait RestorablePrimitiveValue: RestorablePrimitiveValueN { }
Expand description

Dart’s _RestorablePrimitiveValue<T extends Object>: the non-nullable half of the primitive property pairs.

Dart’s overrides only narrow RestorablePrimitiveValueN’s nullable types and assert that the stored data is not null; here the value type is already non-nullable and RestorablePrimitive::from_restoration_data carries the assert, so the trait adds no body of its own.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§