pub trait ToPaxValue {
// Required method
fn to_pax_value(self) -> PaxValue;
// Provided methods
fn nested_properties(&self) -> Vec<UntypedProperty> { ... }
fn to_pax_value_in_graph(self) -> PaxValue
where Self: Sized { ... }
}Expand description
Converts a Rust value into its built-in PaxValue representation.
This is exact conversion, not coercion; coercion is handled separately by
CoercionRules.
Required Methods§
Sourcefn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a PaxValue.
Provided Methods§
Sourcefn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Live properties read when snapshotting a compound value for PAXEL. Adapters observe these as well as the containing property.
Sourcefn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Converts against owner-thread graph views, including nested generated
property fields. Requires an entered property graph for shared fields.
Ordinary Self::to_pax_value reads published value snapshots.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".