Struct doryen_extra::FSize [−][src]
A struct representing a floating-point
Size
determined by its width and height values.
Fields
width: f32The width value the Size is currently representing.
height: f32The height value the Size is currently representing.
Implementations
impl FSize[src]
pub const ZERO: Self[src]
A constant representing a Size where both width and height are 0.
pub const fn new(width: f32, height: f32) -> Self[src]
Returns a Size with the given width and height values.
impl FSize[src]
pub fn round(self) -> Size[src]
Returns a non-floating point Size where the decimal parts of the width and height have been rounded.
pub fn round_u(self) -> USize[src]
Returns a non-floating point Size where the decimal parts of the width and height have been rounded.
Panics
If the width or the height is < 0.
pub fn trunc(self) -> Size[src]
Returns a non-floating point Size where the decimal parts of the width and height have been truncated.
pub fn trunc_u(self) -> USize[src]
Returns a non-floating point Size where the decimal parts of the width and height have been truncated.
Panics
If the width or the height is < 0.
impl FSize[src]
Trait Implementations
impl Add<(f32, f32)> for FSize[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: (f32, f32)) -> Self::Output[src]
impl Add<FSize> for FSize[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Self::Output[src]
impl Add<FSize> for FPosition[src]
type Output = FRectangle
The resulting type after applying the + operator.
fn add(self, rhs: FSize) -> Self::Output[src]
impl Add<f32> for FSize[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: f32) -> Self::Output[src]
impl AddAssign<(f32, f32)> for FSize[src]
impl AddAssign<f32> for FSize[src]
fn add_assign(&mut self, rhs: f32)[src]
impl Clone for FSize[src]
impl Copy for FSize[src]
impl Debug for FSize[src]
impl Default for FSize[src]
impl Display for FSize[src]
impl Div<f32> for FSize[src]
type Output = Self
The resulting type after applying the / operator.
fn div(self, rhs: f32) -> Self::Output[src]
impl DivAssign<f32> for FSize[src]
fn div_assign(&mut self, rhs: f32)[src]
impl From<(f32, f32)> for FSize[src]
impl From<Size> for FSize[src]
impl From<USize> for FSize[src]
impl Mul<f32> for FSize[src]
type Output = Self
The resulting type after applying the * operator.
fn mul(self, rhs: f32) -> Self::Output[src]
impl MulAssign<f32> for FSize[src]
fn mul_assign(&mut self, rhs: f32)[src]
impl Neg for FSize[src]
type Output = Self
The resulting type after applying the - operator.
fn neg(self) -> Self::Output[src]
impl PartialEq<FSize> for FSize[src]
impl Rem<f32> for FSize[src]
type Output = Self
The resulting type after applying the % operator.
fn rem(self, rhs: f32) -> Self::Output[src]
impl RemAssign<f32> for FSize[src]
fn rem_assign(&mut self, rhs: f32)[src]
impl StructuralPartialEq for FSize[src]
impl Sub<(f32, f32)> for FSize[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: (f32, f32)) -> Self::Output[src]
impl Sub<FSize> for FSize[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Self::Output[src]
impl Sub<f32> for FSize[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: f32) -> Self::Output[src]
impl SubAssign<(f32, f32)> for FSize[src]
impl SubAssign<f32> for FSize[src]
fn sub_assign(&mut self, rhs: f32)[src]
impl TryFrom<FSize> for Size[src]
type Error = TryFromSizeError
The type returned in the event of a conversion error.
fn try_from(value: FSize) -> Result<Self, Self::Error>[src]
impl TryFrom<FSize> for USize[src]
Auto Trait Implementations
impl RefUnwindSafe for FSize
impl Send for FSize
impl Sync for FSize
impl Unpin for FSize
impl UnwindSafe for FSize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Erased for T
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, [src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, [src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,