Struct Vec3

Source
#[repr(C)]
pub struct Vec3 { pub x: f32, pub y: f32, pub z: f32, }

Fields§

§x: f32§y: f32§z: f32

Implementations§

Source§

impl Vec3

Source

pub const fn new(x: f32, y: f32, z: f32) -> Self

Source

pub const fn zero() -> Self

Creates (0, 0, 0)

Source

pub const fn one() -> Self

Creates (1, 1, 1)

Source

pub fn sqr_magnitude(&self) -> f32

Returns the square of the vector’s length.

Faster to compute than magnitude()

Source

pub fn magnitude(&self) -> f32

Returns the vector’s length

Source

pub fn normalize(&mut self) -> &mut Self

Normalizes self in place

Source

pub fn normalized(&self) -> Self

Returns a normalized copy of self

Source

pub fn dot(&self, b: Vec3) -> f32

Returns the dot product of self and b

Source

pub fn cross(&self, b: Vec3) -> Vec3

Returns the cross product of self and b

Source

pub fn extend(&self, w: f32) -> Vec4

Source

pub fn xx(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn xy(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn xz(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn yx(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn yy(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn yz(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn zx(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn zy(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn zz(&self) -> Vec2

Available on crate feature swizzle only.
Source

pub fn xxx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xxy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xxz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xyx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xyy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xyz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xzx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xzy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xzz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yxx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yxy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yxz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yyx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yyy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yyz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yzx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yzy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn yzz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zxx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zxy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zxz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zyx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zyy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zyz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zzx(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zzy(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn zzz(&self) -> Vec3

Available on crate feature swizzle only.
Source

pub fn xxxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xxzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xyzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn xzzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yxzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yyzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn yzzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zxzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zyzz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzxx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzxy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzxz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzyx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzyy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzyz(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzzx(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzzy(&self) -> Vec4

Available on crate feature swizzle only.
Source

pub fn zzzz(&self) -> Vec4

Available on crate feature swizzle only.

Trait Implementations§

Source§

impl Add<&Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vec3) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Vec3> for Vec3

Source§

type Output = Vec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vec3) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vec3) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Vec3

Source§

type Output = Vec3

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vec3) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&Vec3> for Vec3

Source§

fn add_assign(&mut self, rhs: &Vec3)

Performs the += operation. Read more
Source§

impl AddAssign for Vec3

Source§

fn add_assign(&mut self, rhs: Vec3)

Performs the += operation. Read more
Source§

impl Clone for Vec3

Source§

fn clone(&self) -> Vec3

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Vec3

Source§

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

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

impl Default for Vec3

Source§

fn default() -> Self

Creates a zero vector

Source§

impl Display for Vec3

Source§

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

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

impl Div<&Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Vec3> for &f32

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Vec3> for Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Vec3> for f32

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&f32> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&f32> for Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Vec3> for &f32

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Vec3> for f32

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f32> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f32> for Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Vec3

Source§

type Output = Vec3

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vec3) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<&Vec3> for Vec3

Source§

fn div_assign(&mut self, rhs: &Vec3)

Performs the /= operation. Read more
Source§

impl DivAssign<&f32> for Vec3

Source§

fn div_assign(&mut self, rhs: &f32)

Performs the /= operation. Read more
Source§

impl DivAssign<f32> for Vec3

Source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
Source§

impl DivAssign for Vec3

Source§

fn div_assign(&mut self, rhs: Vec3)

Performs the /= operation. Read more
Source§

impl From<[f32; 3]> for Vec3

Source§

fn from(d: [f32; 3]) -> Self

Converts to this type from the input type.
Source§

impl Mul<&Vec3> for &Mat4

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for &Quaternion

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for &f32

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for Mat4

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for Quaternion

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Vec3> for f32

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&f32> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&f32> for Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for &Mat4

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for &Quaternion

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for &f32

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for Mat4

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for Quaternion

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Vec3> for f32

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f32> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f32> for Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Vec3

Source§

type Output = Vec3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vec3) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<&Vec3> for Vec3

Source§

fn mul_assign(&mut self, rhs: &Vec3)

Performs the *= operation. Read more
Source§

impl MulAssign<&f32> for Vec3

Source§

fn mul_assign(&mut self, rhs: &f32)

Performs the *= operation. Read more
Source§

impl MulAssign<f32> for Vec3

Source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
Source§

impl MulAssign for Vec3

Source§

fn mul_assign(&mut self, rhs: Vec3)

Performs the *= operation. Read more
Source§

impl Neg for Vec3

Source§

type Output = Vec3

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl PartialEq for Vec3

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Sub<&Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vec3) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Vec3> for Vec3

Source§

type Output = Vec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vec3) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Vec3> for &Vec3

Source§

type Output = Vec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vec3) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Vec3

Source§

type Output = Vec3

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vec3) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&Vec3> for Vec3

Source§

fn sub_assign(&mut self, rhs: &Vec3)

Performs the -= operation. Read more
Source§

impl SubAssign for Vec3

Source§

fn sub_assign(&mut self, rhs: Vec3)

Performs the -= operation. Read more
Source§

impl Copy for Vec3

Source§

impl StructuralPartialEq for Vec3

Auto Trait Implementations§

§

impl Freeze for Vec3

§

impl RefUnwindSafe for Vec3

§

impl Send for Vec3

§

impl Sync for Vec3

§

impl Unpin for Vec3

§

impl UnwindSafe for Vec3

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> 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.

Source§

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

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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>,

Source§

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.