Struct shape_core::Square
source · [−]pub struct Square<T> {
pub anchor: Point<T>,
pub side: T,
}Expand description
A square without rotated.
Fields
anchor: Point<T>side: TImplementations
Trait Implementations
sourceimpl<T> ValidShape<T> for Square<T> where
T: Zero + PartialOrd,
impl<T> ValidShape<T> for Square<T> where
T: Zero + PartialOrd,
Auto Trait Implementations
impl<T> RefUnwindSafe for Square<T> where
T: RefUnwindSafe,
impl<T> Send for Square<T> where
T: Send,
impl<T> Sync for Square<T> where
T: Sync,
impl<T> Unpin for Square<T> where
T: Unpin,
impl<T> UnwindSafe for Square<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more