Struct mutils::geom::Size [−][src]
Tuple Fields
0: N
1: N
Implementations
Returns the longest side.
Be aware it uses an absolute comparison. This means -10 is considered larger than 5.
For example … Size(-10, 5).longest_size()
will return -10.
Note that for negative sizes, the
This is to allow creating a new Size, with a new type, from the type given.
i.e. Size::new(1 as u8, 1 as u8)::to::<u32>()
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the <<=
operation. Read more
Performs the >>=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Returns the value in the new type, but clamped.
Auto Trait Implementations
impl<N> RefUnwindSafe for Size<N> where
N: RefUnwindSafe,
impl<N> UnwindSafe for Size<N> where
N: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more