Struct gee::Rect [−][src]
pub struct Rect<T = f32> { /* fields omitted */ }
Implementations
pub fn clockwise_points(
&self
) -> impl Iterator<Item = Point<T>> + Clone + DoubleEndedIterator
pub fn width_slices_with_margin(
&self,
num_items: usize,
margin: T
) -> impl Iterator<Item = Self>
pub fn height_slices_with_margin(
&self,
num_items: usize,
margin: T
) -> impl Iterator<Item = Self>
pub fn grid_slices(
&self,
num_items: Size<usize>
) -> impl Iterator<Item = impl Iterator<Item = Self>>
pub fn grid_slices_with_margin(
&self,
num_items: Size<usize>,
margin_x: T,
margin_y: T
) -> impl Iterator<Item = impl Iterator<Item = Self>>
pub fn grid_cells_with_margin(
&self,
num_items: Size<usize>,
margin_x: T,
margin_y: T
) -> impl Iterator<Item = (Point<usize>, Self)>
pub fn map_size(
self,
f: impl FnOnce(Size<T>) -> Size<T>,
fixed_location: RectLocation
) -> Self
Trait Implementations
Performs the +=
operation. Read more
Performs the /=
operation. Read more
Performs the *=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the %=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Rect<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Rect<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more