pub trait GetRectangle<T, const N: usize>: GetPosition<T, N> + GetSize<T, N>where
T: Number,{
Show 19 methods
// Provided methods
fn is_inside(&self, pos: Vector<T, N>) -> bool { ... }
fn is_outside(&self, pos: Vector<T, N>) -> bool { ... }
fn begin(&self) -> Vector<T, N> { ... }
fn end(&self) -> Vector<T, N> { ... }
fn bounds_min(&self) -> Vector<T, N> { ... }
fn bounds_max(&self) -> Vector<T, N> { ... }
fn rect(&self) -> Rectangle<T, N> { ... }
fn iter_x(&self) -> Range<T> ⓘ
where Vector<T, N>: HaveX<T>,
Range<T>: IntoIterator { ... }
fn iter_y(&self) -> Range<T> ⓘ
where Vector<T, N>: HaveY<T>,
Range<T>: IntoIterator { ... }
fn iter_z(&self) -> Range<T> ⓘ
where Vector<T, N>: HaveZ<T>,
Range<T>: IntoIterator { ... }
fn iter_w(&self) -> Range<T> ⓘ
where Vector<T, N>: HaveW<T>,
Range<T>: IntoIterator { ... }
fn is_inside_x(&self, x: T) -> bool
where Vector<T, N>: HaveX<T> { ... }
fn is_inside_y(&self, y: T) -> bool
where Vector<T, N>: HaveY<T> { ... }
fn is_inside_z(&self, z: T) -> bool
where Vector<T, N>: HaveZ<T> { ... }
fn is_inside_w(&self, w: T) -> bool
where Vector<T, N>: HaveW<T> { ... }
fn is_outside_x(&self, x: T) -> bool
where Vector<T, N>: HaveX<T> { ... }
fn is_outside_y(&self, y: T) -> bool
where Vector<T, N>: HaveY<T> { ... }
fn is_outside_z(&self, z: T) -> bool
where Vector<T, N>: HaveZ<T> { ... }
fn is_outside_w(&self, w: T) -> bool
where Vector<T, N>: HaveW<T> { ... }
}Provided Methods§
fn is_inside(&self, pos: Vector<T, N>) -> bool
fn is_outside(&self, pos: Vector<T, N>) -> bool
fn begin(&self) -> Vector<T, N>
fn end(&self) -> Vector<T, N>
Sourcefn bounds_min(&self) -> Vector<T, N>
fn bounds_min(&self) -> Vector<T, N>
same as .begin()
Sourcefn bounds_max(&self) -> Vector<T, N>
fn bounds_max(&self) -> Vector<T, N>
same as .end()
fn rect(&self) -> Rectangle<T, N>
fn iter_x(&self) -> Range<T> ⓘ
fn iter_y(&self) -> Range<T> ⓘ
fn iter_z(&self) -> Range<T> ⓘ
fn iter_w(&self) -> Range<T> ⓘ
fn is_inside_x(&self, x: T) -> bool
fn is_inside_y(&self, y: T) -> bool
fn is_inside_z(&self, z: T) -> bool
fn is_inside_w(&self, w: T) -> bool
fn is_outside_x(&self, x: T) -> bool
fn is_outside_y(&self, y: T) -> bool
fn is_outside_z(&self, z: T) -> bool
fn is_outside_w(&self, w: T) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".