Struct input_pipeline::Size

source ·
pub struct Size {
    pub width: f32,
    pub height: f32,
}
Expand description

Represents a generic size.

Fields§

§width: f32

The width in pixels.

§height: f32

The height in pixels.

Implementations§

source§

impl Size

source

pub fn zero() -> Size

Trait Implementations§

source§

impl Add for Size

§

type Output = Size

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
source§

impl AddAssign for Size

source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
source§

impl Clone for Size

source§

fn clone(&self) -> Size

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Size

source§

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

Formats the value using the given formatter. Read more
source§

impl Div<f32> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: f32) -> Size

Performs the / operation. Read more
source§

impl Div<f64> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: f64) -> Size

Performs the / operation. Read more
source§

impl Div<i128> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: i128) -> Size

Performs the / operation. Read more
source§

impl Div<i16> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: i16) -> Size

Performs the / operation. Read more
source§

impl Div<i32> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: i32) -> Size

Performs the / operation. Read more
source§

impl Div<i64> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: i64) -> Size

Performs the / operation. Read more
source§

impl Div<i8> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: i8) -> Size

Performs the / operation. Read more
source§

impl Div<isize> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: isize) -> Size

Performs the / operation. Read more
source§

impl Div<u128> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: u128) -> Size

Performs the / operation. Read more
source§

impl Div<u16> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: u16) -> Size

Performs the / operation. Read more
source§

impl Div<u32> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> Size

Performs the / operation. Read more
source§

impl Div<u64> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> Size

Performs the / operation. Read more
source§

impl Div<u8> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: u8) -> Size

Performs the / operation. Read more
source§

impl Div<usize> for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: usize) -> Size

Performs the / operation. Read more
source§

impl Div for Size

§

type Output = Size

The resulting type after applying the / operator.
source§

fn div(self, other: Self) -> Self

Performs the / operation. Read more
source§

impl DivAssign<f32> for Size

source§

fn div_assign(&mut self, other: f32)

Performs the /= operation. Read more
source§

impl DivAssign<f64> for Size

source§

fn div_assign(&mut self, other: f64)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for Size

source§

fn div_assign(&mut self, other: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for Size

source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for Size

source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for Size

source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for Size

source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
source§

impl DivAssign<isize> for Size

source§

fn div_assign(&mut self, other: isize)

Performs the /= operation. Read more
source§

impl DivAssign<u128> for Size

source§

fn div_assign(&mut self, other: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for Size

source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for Size

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for Size

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for Size

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
source§

impl DivAssign<usize> for Size

source§

fn div_assign(&mut self, other: usize)

Performs the /= operation. Read more
source§

impl DivAssign for Size

source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
source§

impl Mul<Size> for Position

§

type Output = Position

The resulting type after applying the * operator.
source§

fn mul(self, other: Size) -> Position

Performs the * operation. Read more
source§

impl Mul<f32> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: f32) -> Size

Performs the * operation. Read more
source§

impl Mul<f64> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: f64) -> Size

Performs the * operation. Read more
source§

impl Mul<i128> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: i128) -> Size

Performs the * operation. Read more
source§

impl Mul<i16> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: i16) -> Size

Performs the * operation. Read more
source§

impl Mul<i32> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: i32) -> Size

Performs the * operation. Read more
source§

impl Mul<i64> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: i64) -> Size

Performs the * operation. Read more
source§

impl Mul<i8> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: i8) -> Size

Performs the * operation. Read more
source§

impl Mul<isize> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: isize) -> Size

Performs the * operation. Read more
source§

impl Mul<u128> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: u128) -> Size

Performs the * operation. Read more
source§

impl Mul<u16> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: u16) -> Size

Performs the * operation. Read more
source§

impl Mul<u32> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> Size

Performs the * operation. Read more
source§

impl Mul<u64> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> Size

Performs the * operation. Read more
source§

impl Mul<u8> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: u8) -> Size

Performs the * operation. Read more
source§

impl Mul<usize> for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: usize) -> Size

Performs the * operation. Read more
source§

impl Mul for Size

§

type Output = Size

The resulting type after applying the * operator.
source§

fn mul(self, other: Self) -> Self

Performs the * operation. Read more
source§

impl MulAssign<f32> for Size

source§

fn mul_assign(&mut self, other: f32)

Performs the *= operation. Read more
source§

impl MulAssign<f64> for Size

source§

fn mul_assign(&mut self, other: f64)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for Size

source§

fn mul_assign(&mut self, other: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for Size

source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for Size

source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for Size

source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for Size

source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
source§

impl MulAssign<isize> for Size

source§

fn mul_assign(&mut self, other: isize)

Performs the *= operation. Read more
source§

impl MulAssign<u128> for Size

source§

fn mul_assign(&mut self, other: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for Size

source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for Size

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for Size

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for Size

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
source§

impl MulAssign<usize> for Size

source§

fn mul_assign(&mut self, other: usize)

Performs the *= operation. Read more
source§

impl MulAssign for Size

source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
source§

impl PartialEq for Size

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub for Size

§

type Output = Size

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self

Performs the - operation. Read more
source§

impl SubAssign for Size

source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
source§

impl Copy for Size

source§

impl StructuralPartialEq for Size

Auto Trait Implementations§

§

impl Freeze for Size

§

impl RefUnwindSafe for Size

§

impl Send for Size

§

impl Sync for Size

§

impl Unpin for Size

§

impl UnwindSafe for Size

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AsRcAny for T
where T: Any,

source§

fn as_rc_any(self: Rc<T>) -> Rc<dyn Any>

source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Encode<Ambiguous1> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> Encode<Ambiguous2> for T

source§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoAny for T
where T: 'static + Send + Sync,

§

fn into_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Cast the given object into a dyn std::any::Any.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<St> WithTag for St

source§

fn tagged<T>(self, tag: T) -> Tagged<T, St>

Produce a new stream from this one which yields item tupled with a constant tag