Struct doryen_extra::Size [−][src]
A struct representing a
Size
determined by its width and height values.
Fields
width: i32The width value the Size is currently representing.
height: i32The height value the Size is currently representing.
Implementations
impl Size[src]
pub const ZERO: Self[src]
A constant representing a Size where both width and height are 0.
pub const fn new(width: i32, height: i32) -> Self[src]
Returns a Size with the given width and height values.
impl Size[src]
Trait Implementations
impl Add<(i32, i32)> for Size[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: (i32, i32)) -> Self::Output[src]
impl Add<Size> for Size[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Self::Output[src]
impl Add<i32> for Size[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: i32) -> Self::Output[src]
impl AddAssign<(i32, i32)> for Size[src]
impl AddAssign<i32> for Size[src]
fn add_assign(&mut self, rhs: i32)[src]
impl Clone for Size[src]
impl Copy for Size[src]
impl Debug for Size[src]
impl Default for Size[src]
impl Display for Size[src]
impl Div<i32> for Size[src]
type Output = Self
The resulting type after applying the / operator.
fn div(self, rhs: i32) -> Self::Output[src]
impl DivAssign<i32> for Size[src]
fn div_assign(&mut self, rhs: i32)[src]
impl Eq for Size[src]
impl From<(i32, i32)> for Size[src]
impl From<Size> for FSize[src]
impl Mul<i32> for Size[src]
type Output = Self
The resulting type after applying the * operator.
fn mul(self, rhs: i32) -> Self::Output[src]
impl MulAssign<i32> for Size[src]
fn mul_assign(&mut self, rhs: i32)[src]
impl Neg for Size[src]
type Output = Self
The resulting type after applying the - operator.
fn neg(self) -> Self::Output[src]
impl PartialEq<Size> for Size[src]
impl Rem<i32> for Size[src]
type Output = Self
The resulting type after applying the % operator.
fn rem(self, rhs: i32) -> Self::Output[src]
impl RemAssign<i32> for Size[src]
fn rem_assign(&mut self, rhs: i32)[src]
impl StructuralEq for Size[src]
impl StructuralPartialEq for Size[src]
impl Sub<(i32, i32)> for Size[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: (i32, i32)) -> Self::Output[src]
impl Sub<Size> for Size[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Self::Output[src]
impl Sub<i32> for Size[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: i32) -> Self::Output[src]
impl SubAssign<(i32, i32)> for Size[src]
impl SubAssign<i32> for Size[src]
fn sub_assign(&mut self, rhs: i32)[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<Size> for USize[src]
type Error = TryFromSizeError
The type returned in the event of a conversion error.
fn try_from(value: Size) -> Result<Self, Self::Error>[src]
impl TryFrom<USize> for Size[src]
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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>,