Skip to main content

ToPaxValue

Trait ToPaxValue 

Source
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§

Source

fn to_pax_value(self) -> PaxValue

Converts this value into a PaxValue.

Provided Methods§

Source

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.

Source

fn to_pax_value_in_graph(self) -> PaxValue
where 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".

Implementations on Foreign Types§

Source§

impl ToPaxValue for PaxType

Source§

impl ToPaxValue for String

Source§

impl ToPaxValue for TemplateNodeId

Source§

impl ToPaxValue for TypeId

Source§

impl ToPaxValue for bool

Source§

impl ToPaxValue for f32

Source§

impl ToPaxValue for f64

Source§

impl ToPaxValue for i8

Source§

impl ToPaxValue for i16

Source§

impl ToPaxValue for i32

Source§

impl ToPaxValue for i64

Source§

impl ToPaxValue for isize

Source§

impl ToPaxValue for u8

Source§

impl ToPaxValue for u16

Source§

impl ToPaxValue for u32

Source§

impl ToPaxValue for u64

Source§

impl ToPaxValue for usize

Source§

impl<T> ToPaxValue for Option<T>
where T: ToPaxValue,

Source§

impl<T> ToPaxValue for Range<T>
where T: ToPaxValue,

Source§

impl<T> ToPaxValue for Rc<RefCell<T>>
where T: ToPaxValue + Clone,

Source§

impl<T> ToPaxValue for Vec<T>
where T: ToPaxValue,

Implementors§

Source§

impl ToPaxValue for Accel

Source§

impl ToPaxValue for Color

Source§

impl ToPaxValue for ColorChannel

Source§

impl ToPaxValue for ConditionalProperties

Source§

impl ToPaxValue for Depth

Source§

impl ToPaxValue for Duration

Source§

impl ToPaxValue for Fill

Source§

impl ToPaxValue for GradientStop

Source§

impl ToPaxValue for Gyro

Source§

impl ToPaxValue for LayoutRole

Source§

impl ToPaxValue for LightShape

Source§

impl ToPaxValue for LinearGradient

Source§

impl ToPaxValue for Material

Source§

impl ToPaxValue for MaterialParams

Source§

impl ToPaxValue for MeshGradient

Source§

impl ToPaxValue for MeshPoint

Source§

impl ToPaxValue for Numeric

Source§

impl ToPaxValue for Opacity

Source§

impl ToPaxValue for Paint

Source§

impl ToPaxValue for PathElement

Source§

impl ToPaxValue for PathSmoothing

Source§

impl ToPaxValue for PaxValue

Source§

impl ToPaxValue for Percent

Source§

impl ToPaxValue for RadialGradient

Source§

impl ToPaxValue for RepeatItem

Source§

impl ToPaxValue for RepeatProperties

Source§

impl ToPaxValue for Rotation

Source§

impl ToPaxValue for RouteLocation

Source§

impl ToPaxValue for RouteMatch

Source§

impl ToPaxValue for RouterProperties

Source§

impl ToPaxValue for SceneAmbientLight

Source§

impl ToPaxValue for SceneLight

Source§

impl ToPaxValue for SceneLighting

Source§

impl ToPaxValue for ScrollPosition

Source§

impl ToPaxValue for Size

Source§

impl ToPaxValue for Stroke

Source§

impl ToPaxValue for StrokeCap

Source§

impl ToPaxValue for StrokeJoin

Source§

impl ToPaxValue for TargetInfo

Source§

impl ToPaxValue for Transform2

Source§

impl ToPaxValue for Transform2D

Source§

impl ToPaxValue for UnitValue

Source§

impl ToPaxValue for Vector2

Source§

impl ToPaxValue for Vector3

Source§

impl ToPaxValue for Viewport

Source§

impl<T> ToPaxValue for LocalProperty<T>

Source§

impl<T> ToPaxValue for Property<T>