pub struct Rectangle {
pub stroke: Property<Stroke>,
pub fill: Property<Fill>,
pub corner_radii: Property<RectangleCornerRadii>,
}Expand description
A basic 2D vector rectangle
Fields§
§stroke: Property<Stroke>§fill: Property<Fill>§corner_radii: Property<RectangleCornerRadii>Trait Implementations§
source§impl CoercionRules for Rectangle
impl CoercionRules for Rectangle
source§impl<'de> Deserialize<'de> for Rectangle
impl<'de> Deserialize<'de> for Rectangle
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperFunctions for Rectangle
impl HelperFunctions for Rectangle
source§impl Interpolatable for Rectangle
impl Interpolatable for Rectangle
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl ToPaxValue for Rectangle
impl ToPaxValue for Rectangle
fn to_pax_value(self) -> PaxValue
impl ImplToFromPaxAny for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.