Struct piet_common::UnitPoint
source · pub struct UnitPoint { /* private fields */ }Expand description
A representation of a point relative to a unit rectangle.
Implementations
sourceimpl UnitPoint
impl UnitPoint
sourcepub const BOTTOM_LEFT: UnitPoint = UnitPoint::new(0.0, 1.0)
pub const BOTTOM_LEFT: UnitPoint = UnitPoint::new(0.0, 1.0)
(0.0, 1.0)
sourcepub const BOTTOM_RIGHT: UnitPoint = UnitPoint::new(1.0, 1.0)
pub const BOTTOM_RIGHT: UnitPoint = UnitPoint::new(1.0, 1.0)
(1.0, 1.0)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnitPoint
impl Send for UnitPoint
impl Sync for UnitPoint
impl Unpin for UnitPoint
impl UnwindSafe for UnitPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.