pub struct Rectangle<FILL: FillType> {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
pub fill: PhantomData<FILL>,
}Expand description
Defines a Rectangle by two corners.
Fields§
§x1: f32§y1: f32§x2: f32§y2: f32§fill: PhantomData<FILL>Trait Implementations§
Source§impl DynamicDrawable<2> for Rectangle<Filled>
impl DynamicDrawable<2> for Rectangle<Filled>
Source§impl DynamicDrawable<2> for Rectangle<NoFill>
impl DynamicDrawable<2> for Rectangle<NoFill>
impl<FILL: FillType> StructuralPartialEq for Rectangle<FILL>
Auto Trait Implementations§
impl<FILL> Freeze for Rectangle<FILL>
impl<FILL> RefUnwindSafe for Rectangle<FILL>where
FILL: RefUnwindSafe,
impl<FILL> Send for Rectangle<FILL>where
FILL: Send,
impl<FILL> Sync for Rectangle<FILL>where
FILL: Sync,
impl<FILL> Unpin for Rectangle<FILL>where
FILL: Unpin,
impl<FILL> UnwindSafe for Rectangle<FILL>where
FILL: UnwindSafe,
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