Struct FloatRect

pub struct FloatRect { pub min: Vec2<f32>, pub max: Vec2<f32> }

A rectangular section anywhere in 2D float space.

Fields

min: Vec2<f32>

The top left corner location of the rectangle (inclusive)

max: Vec2<f32>

The bottom right corner location of the rectangle (inclusive)

Implementations

impl FloatRect

const fn byte_size() -> usize

Number of bytes this would consume in an exr file.

fn write<W: Write>(&self, write: &mut W) -> UnitResult

Without validation, write this instance to the byte stream.

fn read<R: Read>(read: &mut R) -> Result<Self>

Read the value without validating.

Trait Implementations

impl Clone for FloatRect

fn clone(&self) -> Self

impl Copy for FloatRect

impl Debug for FloatRect

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for FloatRect

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for FloatRect

Auto Trait Implementations

impl Freeze for FloatRect

impl RefUnwindSafe for FloatRect

impl Send for FloatRect

impl Sync for FloatRect

impl Unpin for FloatRect

impl UnsafeUnpin for FloatRect

impl UnwindSafe for FloatRect

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for FloatRect where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for FloatRect where ST: ?Sized, DT: ?Sized,

impl<T> Any for FloatRect where T: 'static + ?Sized,

impl<T> Borrow<T> for FloatRect where T: ?Sized,

impl<T> BorrowMut<T> for FloatRect where T: ?Sized,

impl<T> CloneToUninit for FloatRect where T: Clone,

impl<T> From<T> for FloatRect

impl<T> Pointable for FloatRect

impl<T> Read<Exclusive, BecauseExclusive> for FloatRect where T: ?Sized,

impl<T> ToOwned for FloatRect where T: Clone,

impl<T, U> Into<U> for FloatRect where U: From<T>,

impl<T, U> TryFrom<U> for FloatRect where U: Into<T>,

impl<T, U> TryInto<U> for FloatRect where U: TryFrom<T>,