[−][src]Struct bracket_geometry::prelude::RectF
Fields
x1: f32x2: f32y1: f32y2: f32Methods
impl RectF[src]
pub fn with_size<T>(x: T, y: T, w: T, h: T) -> RectF where
T: TryInto<f32>, [src]
T: TryInto<f32>,
pub fn with_exact<T>(x1: T, y1: T, x2: T, y2: T) -> RectF where
T: TryInto<f32>, [src]
T: TryInto<f32>,
pub fn zero() -> RectF[src]
pub fn intersect(&self, other: &RectF) -> bool[src]
pub fn center(&self) -> PointF[src]
pub fn point_in_rect(&self, point: PointF) -> bool[src]
pub fn width(&self) -> f32[src]
pub fn height(&self) -> f32[src]
Trait Implementations
impl Add<RectF> for RectF[src]
type Output = RectF
The resulting type after applying the + operator.
fn add(self, rhs: RectF) -> RectF[src]
impl Clone for RectF[src]
impl Copy for RectF[src]
impl Debug for RectF[src]
impl Default for RectF[src]
impl PartialEq<RectF> for RectF[src]
impl StructuralPartialEq for RectF[src]
Auto Trait Implementations
impl RefUnwindSafe for RectF
impl Send for RectF
impl Sync for RectF
impl Unpin for RectF
impl UnwindSafe for RectF
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,