Enum pax_runtime::api::PaxValue
source · pub enum PaxValue {
Bool(bool),
Numeric(Numeric),
String(String),
StringBox(StringBox),
Transform2D(Transform2D),
Size(Size),
Percent(Percent),
Color(Color),
Rotation(Rotation),
Fill(Fill),
Stroke(Stroke),
Component {},
}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)
StringBox(StringBox)
Transform2D(Transform2D)
Size(Size)
Percent(Percent)
Color(Color)
Rotation(Rotation)
Fill(Fill)
Stroke(Stroke)
Component
Trait Implementations§
source§impl<'de> Deserialize<'de> for PaxValue
impl<'de> Deserialize<'de> for PaxValue
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PaxValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PaxValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PaxValue
impl Serialize for PaxValue
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto 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.