Enum pax_runtime_api::pax_value::PaxValue
source · pub enum PaxValue {
}
Expand description
Container for all internal pax types Two important traits are related to this type: ToFromPaxValue - responsible for converting to and from specific types (u8, String, Color, etc) CoercionRules - responsible for coercing a PaxValue to a specific type (possibly from multiple different variants)
Variants§
Bool(bool)
Numeric(Numeric)
String(String)
Transform2D(Transform2D)
Size(Size)
Percent(Percent)
Color(Color)
ColorChannel(ColorChannel)
Rotation(Rotation)
Fill(Fill)
Stroke(Stroke)
Vec(Vec<PaxAny>)
Component
Implementations§
Trait Implementations§
source§impl PartialOrd for PaxValue
impl PartialOrd for PaxValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreAuto Trait Implementations§
impl Freeze for PaxValue
impl !RefUnwindSafe for PaxValue
impl !Send for PaxValue
impl !Sync for PaxValue
impl Unpin for PaxValue
impl !UnwindSafe for PaxValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.