pub trait With<F> {
// Required methods
fn shape() -> Shape;
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<F>;
fn write(f: &F) -> Value;
// Provided methods
fn absent() -> Option<F> { ... }
fn skip(_f: &F) -> bool { ... }
}Expand description
How a field of type F is read and written.
Required Methods§
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<F>
fn write(f: &F) -> Value
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".