pub struct UnitPoint { /* private fields */ }
Expand description
A representation of a point relative to a unit rectangle.
Implementations§
§impl UnitPoint
impl UnitPoint
pub 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)
pub 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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.