Struct iced_glow::Vector [−]
A 2D vector.
Fields
x: T
The X component of the Vector
y: T
The Y component of the Vector
Implementations
impl<T> Vector<T>
Trait Implementations
impl<T> Add<Vector<T>> for Vector<T> where
T: Add<T, Output = T>,
T: Add<T, Output = T>,
type Output = Vector<T>
The resulting type after applying the +
operator.
pub fn add(self, b: Vector<T>) -> Vector<T>
impl<T> Clone for Vector<T> where
T: Clone,
T: Clone,
pub fn clone(&self) -> Vector<T>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for Vector<T> where
T: Copy,
T: Copy,
impl<T> Debug for Vector<T> where
T: Debug,
T: Debug,
impl<T> Default for Vector<T> where
T: Default,
T: Default,
impl<T> From<[T; 2]> for Vector<T>
impl From<Size<f32>> for Vector<f32>
impl<T> Mul<T> for Vector<T> where
T: Mul<T, Output = T> + Copy,
T: Mul<T, Output = T> + Copy,
type Output = Vector<T>
The resulting type after applying the *
operator.
pub fn mul(self, scale: T) -> Vector<T>
impl<T> PartialEq<Vector<T>> for Vector<T> where
T: PartialEq<T>,
T: PartialEq<T>,
impl<T> StructuralPartialEq for Vector<T>
impl<T> Sub<Vector<T>> for Vector<T> where
T: Sub<T, Output = T>,
T: Sub<T, Output = T>,
Auto Trait Implementations
impl<T> RefUnwindSafe for Vector<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Vector<T> where
T: Send,
T: Send,
impl<T> Sync for Vector<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Vector<T> where
T: UnwindSafe,
T: UnwindSafe,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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, 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>,