pub struct Range {
pub min: f32,
pub max: f32,
}Fields§
§min: f32§max: f32Implementations§
Source§impl Range
impl Range
pub const fn new(min: f32, max: f32) -> Self
pub fn min_size(min: f32, size: f32) -> Self
pub fn max_size(max: f32, size: f32) -> Self
pub fn center_size(center: f32, size: f32) -> Self
pub fn point(pt: f32) -> Self
pub fn size(&self) -> f32
pub fn contains(&self, x: f32) -> bool
pub fn intersect(&self, other: Range) -> Self
pub fn intersects(&self, other: Range) -> bool
pub fn center(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more