Struct slender_math::Vector4i

source ·
#[repr(C, align(16))]
pub struct Vector4i(_);
Expand description

A vector with 4 i32 components

Implementations§

source§

impl Vector4i

source

pub const ZERO: Self = _

The vector (0, 0, 0, 0)

source

pub const fn x(&self) -> i32

The x component of the vector

source

pub fn x_mut(&mut self) -> &mut i32

The x component of the vector

source

pub const fn y(&self) -> i32

The y component of the vector

source

pub fn y_mut(&mut self) -> &mut i32

The y component of the vector

source

pub const fn z(&self) -> i32

The z component of the vector

source

pub fn z_mut(&mut self) -> &mut i32

The z component of the vector

source

pub const fn w(&self) -> i32

The w component of the vector

source

pub fn w_mut(&mut self) -> &mut i32

The w component of the vector

source

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

Creates a new vector from the given components

source

pub const fn from_scalar(scalar: i32) -> Self

Creates a new vector by setting all components to the given scalar

source

pub const fn from_array(array: [i32; 4]) -> Self

Creates a new vector from the given array

source

pub const fn from_v2i(v: v2i, z: i32, w: i32) -> Self

Creates a new vector from the given 2-component vector

source

pub const fn from_v3i(v: v3i, w: i32) -> Self

Creates a new vector from the given 3-component vector

source

pub const fn to_array(&self) -> [i32; 4]

Converts the vector into an array

source

pub fn to_float(&self) -> Vector4f

Casts this vector into a floating point vector

source

pub const fn as_array(&self) -> &[i32; 4]

Returns an array reference to the vector

source

pub fn as_mut_array(&mut self) -> &mut [i32; 4]

Returns a mutable array reference to the vector

source§

impl Vector4i

source

pub fn abs(self) -> Self

Returns a vector with each component set to the absolute value of the corresponding component in this vector

source

pub fn min(self, rhs: Self) -> Self

Returns a vector with each component set to the minimum of the corresponding components between this vector and rhs

source

pub fn max(self, rhs: Self) -> Self

Returns a vector with each component set to the maximum of the corresponding components between this vector and rhs

§

impl Vector4i

pub fn xx(&self) -> Vector2i

pub fn xy(&self) -> Vector2i

pub fn xz(&self) -> Vector2i

pub fn xw(&self) -> Vector2i

pub fn yx(&self) -> Vector2i

pub fn yy(&self) -> Vector2i

pub fn yz(&self) -> Vector2i

pub fn yw(&self) -> Vector2i

pub fn zx(&self) -> Vector2i

pub fn zy(&self) -> Vector2i

pub fn zz(&self) -> Vector2i

pub fn zw(&self) -> Vector2i

pub fn wx(&self) -> Vector2i

pub fn wy(&self) -> Vector2i

pub fn wz(&self) -> Vector2i

pub fn ww(&self) -> Vector2i

pub fn xxx(&self) -> Vector3i

pub fn xxy(&self) -> Vector3i

pub fn xxz(&self) -> Vector3i

pub fn xxw(&self) -> Vector3i

pub fn xyx(&self) -> Vector3i

pub fn xyy(&self) -> Vector3i

pub fn xyz(&self) -> Vector3i

pub fn xyw(&self) -> Vector3i

pub fn xzx(&self) -> Vector3i

pub fn xzy(&self) -> Vector3i

pub fn xzz(&self) -> Vector3i

pub fn xzw(&self) -> Vector3i

pub fn xwx(&self) -> Vector3i

pub fn xwy(&self) -> Vector3i

pub fn xwz(&self) -> Vector3i

pub fn xww(&self) -> Vector3i

pub fn yxx(&self) -> Vector3i

pub fn yxy(&self) -> Vector3i

pub fn yxz(&self) -> Vector3i

pub fn yxw(&self) -> Vector3i

pub fn yyx(&self) -> Vector3i

pub fn yyy(&self) -> Vector3i

pub fn yyz(&self) -> Vector3i

pub fn yyw(&self) -> Vector3i

pub fn yzx(&self) -> Vector3i

pub fn yzy(&self) -> Vector3i

pub fn yzz(&self) -> Vector3i

pub fn yzw(&self) -> Vector3i

pub fn ywx(&self) -> Vector3i

pub fn ywy(&self) -> Vector3i

pub fn ywz(&self) -> Vector3i

pub fn yww(&self) -> Vector3i

pub fn zxx(&self) -> Vector3i

pub fn zxy(&self) -> Vector3i

pub fn zxz(&self) -> Vector3i

pub fn zxw(&self) -> Vector3i

pub fn zyx(&self) -> Vector3i

pub fn zyy(&self) -> Vector3i

pub fn zyz(&self) -> Vector3i

pub fn zyw(&self) -> Vector3i

pub fn zzx(&self) -> Vector3i

pub fn zzy(&self) -> Vector3i

pub fn zzz(&self) -> Vector3i

pub fn zzw(&self) -> Vector3i

pub fn zwx(&self) -> Vector3i

pub fn zwy(&self) -> Vector3i

pub fn zwz(&self) -> Vector3i

pub fn zww(&self) -> Vector3i

pub fn wxx(&self) -> Vector3i

pub fn wxy(&self) -> Vector3i

pub fn wxz(&self) -> Vector3i

pub fn wxw(&self) -> Vector3i

pub fn wyx(&self) -> Vector3i

pub fn wyy(&self) -> Vector3i

pub fn wyz(&self) -> Vector3i

pub fn wyw(&self) -> Vector3i

pub fn wzx(&self) -> Vector3i

pub fn wzy(&self) -> Vector3i

pub fn wzz(&self) -> Vector3i

pub fn wzw(&self) -> Vector3i

pub fn wwx(&self) -> Vector3i

pub fn wwy(&self) -> Vector3i

pub fn wwz(&self) -> Vector3i

pub fn www(&self) -> Vector3i

pub fn xxxx(&self) -> Vector4i

pub fn xxxy(&self) -> Vector4i

pub fn xxxz(&self) -> Vector4i

pub fn xxxw(&self) -> Vector4i

pub fn xxyx(&self) -> Vector4i

pub fn xxyy(&self) -> Vector4i

pub fn xxyz(&self) -> Vector4i

pub fn xxyw(&self) -> Vector4i

pub fn xxzx(&self) -> Vector4i

pub fn xxzy(&self) -> Vector4i

pub fn xxzz(&self) -> Vector4i

pub fn xxzw(&self) -> Vector4i

pub fn xxwx(&self) -> Vector4i

pub fn xxwy(&self) -> Vector4i

pub fn xxwz(&self) -> Vector4i

pub fn xxww(&self) -> Vector4i

pub fn xyxx(&self) -> Vector4i

pub fn xyxy(&self) -> Vector4i

pub fn xyxz(&self) -> Vector4i

pub fn xyxw(&self) -> Vector4i

pub fn xyyx(&self) -> Vector4i

pub fn xyyy(&self) -> Vector4i

pub fn xyyz(&self) -> Vector4i

pub fn xyyw(&self) -> Vector4i

pub fn xyzx(&self) -> Vector4i

pub fn xyzy(&self) -> Vector4i

pub fn xyzz(&self) -> Vector4i

pub fn xyzw(&self) -> Vector4i

pub fn xywx(&self) -> Vector4i

pub fn xywy(&self) -> Vector4i

pub fn xywz(&self) -> Vector4i

pub fn xyww(&self) -> Vector4i

pub fn xzxx(&self) -> Vector4i

pub fn xzxy(&self) -> Vector4i

pub fn xzxz(&self) -> Vector4i

pub fn xzxw(&self) -> Vector4i

pub fn xzyx(&self) -> Vector4i

pub fn xzyy(&self) -> Vector4i

pub fn xzyz(&self) -> Vector4i

pub fn xzyw(&self) -> Vector4i

pub fn xzzx(&self) -> Vector4i

pub fn xzzy(&self) -> Vector4i

pub fn xzzz(&self) -> Vector4i

pub fn xzzw(&self) -> Vector4i

pub fn xzwx(&self) -> Vector4i

pub fn xzwy(&self) -> Vector4i

pub fn xzwz(&self) -> Vector4i

pub fn xzww(&self) -> Vector4i

pub fn xwxx(&self) -> Vector4i

pub fn xwxy(&self) -> Vector4i

pub fn xwxz(&self) -> Vector4i

pub fn xwxw(&self) -> Vector4i

pub fn xwyx(&self) -> Vector4i

pub fn xwyy(&self) -> Vector4i

pub fn xwyz(&self) -> Vector4i

pub fn xwyw(&self) -> Vector4i

pub fn xwzx(&self) -> Vector4i

pub fn xwzy(&self) -> Vector4i

pub fn xwzz(&self) -> Vector4i

pub fn xwzw(&self) -> Vector4i

pub fn xwwx(&self) -> Vector4i

pub fn xwwy(&self) -> Vector4i

pub fn xwwz(&self) -> Vector4i

pub fn xwww(&self) -> Vector4i

pub fn yxxx(&self) -> Vector4i

pub fn yxxy(&self) -> Vector4i

pub fn yxxz(&self) -> Vector4i

pub fn yxxw(&self) -> Vector4i

pub fn yxyx(&self) -> Vector4i

pub fn yxyy(&self) -> Vector4i

pub fn yxyz(&self) -> Vector4i

pub fn yxyw(&self) -> Vector4i

pub fn yxzx(&self) -> Vector4i

pub fn yxzy(&self) -> Vector4i

pub fn yxzz(&self) -> Vector4i

pub fn yxzw(&self) -> Vector4i

pub fn yxwx(&self) -> Vector4i

pub fn yxwy(&self) -> Vector4i

pub fn yxwz(&self) -> Vector4i

pub fn yxww(&self) -> Vector4i

pub fn yyxx(&self) -> Vector4i

pub fn yyxy(&self) -> Vector4i

pub fn yyxz(&self) -> Vector4i

pub fn yyxw(&self) -> Vector4i

pub fn yyyx(&self) -> Vector4i

pub fn yyyy(&self) -> Vector4i

pub fn yyyz(&self) -> Vector4i

pub fn yyyw(&self) -> Vector4i

pub fn yyzx(&self) -> Vector4i

pub fn yyzy(&self) -> Vector4i

pub fn yyzz(&self) -> Vector4i

pub fn yyzw(&self) -> Vector4i

pub fn yywx(&self) -> Vector4i

pub fn yywy(&self) -> Vector4i

pub fn yywz(&self) -> Vector4i

pub fn yyww(&self) -> Vector4i

pub fn yzxx(&self) -> Vector4i

pub fn yzxy(&self) -> Vector4i

pub fn yzxz(&self) -> Vector4i

pub fn yzxw(&self) -> Vector4i

pub fn yzyx(&self) -> Vector4i

pub fn yzyy(&self) -> Vector4i

pub fn yzyz(&self) -> Vector4i

pub fn yzyw(&self) -> Vector4i

pub fn yzzx(&self) -> Vector4i

pub fn yzzy(&self) -> Vector4i

pub fn yzzz(&self) -> Vector4i

pub fn yzzw(&self) -> Vector4i

pub fn yzwx(&self) -> Vector4i

pub fn yzwy(&self) -> Vector4i

pub fn yzwz(&self) -> Vector4i

pub fn yzww(&self) -> Vector4i

pub fn ywxx(&self) -> Vector4i

pub fn ywxy(&self) -> Vector4i

pub fn ywxz(&self) -> Vector4i

pub fn ywxw(&self) -> Vector4i

pub fn ywyx(&self) -> Vector4i

pub fn ywyy(&self) -> Vector4i

pub fn ywyz(&self) -> Vector4i

pub fn ywyw(&self) -> Vector4i

pub fn ywzx(&self) -> Vector4i

pub fn ywzy(&self) -> Vector4i

pub fn ywzz(&self) -> Vector4i

pub fn ywzw(&self) -> Vector4i

pub fn ywwx(&self) -> Vector4i

pub fn ywwy(&self) -> Vector4i

pub fn ywwz(&self) -> Vector4i

pub fn ywww(&self) -> Vector4i

pub fn zxxx(&self) -> Vector4i

pub fn zxxy(&self) -> Vector4i

pub fn zxxz(&self) -> Vector4i

pub fn zxxw(&self) -> Vector4i

pub fn zxyx(&self) -> Vector4i

pub fn zxyy(&self) -> Vector4i

pub fn zxyz(&self) -> Vector4i

pub fn zxyw(&self) -> Vector4i

pub fn zxzx(&self) -> Vector4i

pub fn zxzy(&self) -> Vector4i

pub fn zxzz(&self) -> Vector4i

pub fn zxzw(&self) -> Vector4i

pub fn zxwx(&self) -> Vector4i

pub fn zxwy(&self) -> Vector4i

pub fn zxwz(&self) -> Vector4i

pub fn zxww(&self) -> Vector4i

pub fn zyxx(&self) -> Vector4i

pub fn zyxy(&self) -> Vector4i

pub fn zyxz(&self) -> Vector4i

pub fn zyxw(&self) -> Vector4i

pub fn zyyx(&self) -> Vector4i

pub fn zyyy(&self) -> Vector4i

pub fn zyyz(&self) -> Vector4i

pub fn zyyw(&self) -> Vector4i

pub fn zyzx(&self) -> Vector4i

pub fn zyzy(&self) -> Vector4i

pub fn zyzz(&self) -> Vector4i

pub fn zyzw(&self) -> Vector4i

pub fn zywx(&self) -> Vector4i

pub fn zywy(&self) -> Vector4i

pub fn zywz(&self) -> Vector4i

pub fn zyww(&self) -> Vector4i

pub fn zzxx(&self) -> Vector4i

pub fn zzxy(&self) -> Vector4i

pub fn zzxz(&self) -> Vector4i

pub fn zzxw(&self) -> Vector4i

pub fn zzyx(&self) -> Vector4i

pub fn zzyy(&self) -> Vector4i

pub fn zzyz(&self) -> Vector4i

pub fn zzyw(&self) -> Vector4i

pub fn zzzx(&self) -> Vector4i

pub fn zzzy(&self) -> Vector4i

pub fn zzzz(&self) -> Vector4i

pub fn zzzw(&self) -> Vector4i

pub fn zzwx(&self) -> Vector4i

pub fn zzwy(&self) -> Vector4i

pub fn zzwz(&self) -> Vector4i

pub fn zzww(&self) -> Vector4i

pub fn zwxx(&self) -> Vector4i

pub fn zwxy(&self) -> Vector4i

pub fn zwxz(&self) -> Vector4i

pub fn zwxw(&self) -> Vector4i

pub fn zwyx(&self) -> Vector4i

pub fn zwyy(&self) -> Vector4i

pub fn zwyz(&self) -> Vector4i

pub fn zwyw(&self) -> Vector4i

pub fn zwzx(&self) -> Vector4i

pub fn zwzy(&self) -> Vector4i

pub fn zwzz(&self) -> Vector4i

pub fn zwzw(&self) -> Vector4i

pub fn zwwx(&self) -> Vector4i

pub fn zwwy(&self) -> Vector4i

pub fn zwwz(&self) -> Vector4i

pub fn zwww(&self) -> Vector4i

pub fn wxxx(&self) -> Vector4i

pub fn wxxy(&self) -> Vector4i

pub fn wxxz(&self) -> Vector4i

pub fn wxxw(&self) -> Vector4i

pub fn wxyx(&self) -> Vector4i

pub fn wxyy(&self) -> Vector4i

pub fn wxyz(&self) -> Vector4i

pub fn wxyw(&self) -> Vector4i

pub fn wxzx(&self) -> Vector4i

pub fn wxzy(&self) -> Vector4i

pub fn wxzz(&self) -> Vector4i

pub fn wxzw(&self) -> Vector4i

pub fn wxwx(&self) -> Vector4i

pub fn wxwy(&self) -> Vector4i

pub fn wxwz(&self) -> Vector4i

pub fn wxww(&self) -> Vector4i

pub fn wyxx(&self) -> Vector4i

pub fn wyxy(&self) -> Vector4i

pub fn wyxz(&self) -> Vector4i

pub fn wyxw(&self) -> Vector4i

pub fn wyyx(&self) -> Vector4i

pub fn wyyy(&self) -> Vector4i

pub fn wyyz(&self) -> Vector4i

pub fn wyyw(&self) -> Vector4i

pub fn wyzx(&self) -> Vector4i

pub fn wyzy(&self) -> Vector4i

pub fn wyzz(&self) -> Vector4i

pub fn wyzw(&self) -> Vector4i

pub fn wywx(&self) -> Vector4i

pub fn wywy(&self) -> Vector4i

pub fn wywz(&self) -> Vector4i

pub fn wyww(&self) -> Vector4i

pub fn wzxx(&self) -> Vector4i

pub fn wzxy(&self) -> Vector4i

pub fn wzxz(&self) -> Vector4i

pub fn wzxw(&self) -> Vector4i

pub fn wzyx(&self) -> Vector4i

pub fn wzyy(&self) -> Vector4i

pub fn wzyz(&self) -> Vector4i

pub fn wzyw(&self) -> Vector4i

pub fn wzzx(&self) -> Vector4i

pub fn wzzy(&self) -> Vector4i

pub fn wzzz(&self) -> Vector4i

pub fn wzzw(&self) -> Vector4i

pub fn wzwx(&self) -> Vector4i

pub fn wzwy(&self) -> Vector4i

pub fn wzwz(&self) -> Vector4i

pub fn wzww(&self) -> Vector4i

pub fn wwxx(&self) -> Vector4i

pub fn wwxy(&self) -> Vector4i

pub fn wwxz(&self) -> Vector4i

pub fn wwxw(&self) -> Vector4i

pub fn wwyx(&self) -> Vector4i

pub fn wwyy(&self) -> Vector4i

pub fn wwyz(&self) -> Vector4i

pub fn wwyw(&self) -> Vector4i

pub fn wwzx(&self) -> Vector4i

pub fn wwzy(&self) -> Vector4i

pub fn wwzz(&self) -> Vector4i

pub fn wwzw(&self) -> Vector4i

pub fn wwwx(&self) -> Vector4i

pub fn wwwy(&self) -> Vector4i

pub fn wwwz(&self) -> Vector4i

pub fn wwww(&self) -> Vector4i

Trait Implementations§

source§

impl Add<Vector4i> for Vector4i

§

type Output = Vector4i

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i32> for Vector4i

§

type Output = Vector4i

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<Vector4i> for Vector4i

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl AddAssign<i32> for Vector4i

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AsMut<[i32; 4]> for Vector4i

source§

fn as_mut(&mut self) -> &mut [i32; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<[i32; 4]> for Vector4i

source§

fn as_ref(&self) -> &[i32; 4]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<[i32; 4]> for Vector4i

source§

fn borrow(&self) -> &[i32; 4]

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<[i32; 4]> for Vector4i

source§

fn borrow_mut(&mut self) -> &mut [i32; 4]

Mutably borrows from an owned value. Read more
source§

impl Clone for Vector4i

source§

fn clone(&self) -> Vector4i

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 Vector4i

source§

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

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

impl Display for Vector4i

source§

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

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

impl Div<Vector4i> for Vector4i

§

type Output = Vector4i

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i32> for Vector4i

§

type Output = Vector4i

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<Vector4i> for Vector4i

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for Vector4i

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl From<[i32; 4]> for Vector4i

source§

fn from(a: [i32; 4]) -> Self

Converts to this type from the input type.
source§

impl Hash for Vector4i

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Index<usize> for Vector4i

§

type Output = i32

The returned type after indexing.
source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<usize> for Vector4i

source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl Into<[i32; 4]> for Vector4i

source§

fn into(self) -> [i32; 4]

Converts this type into the (usually inferred) input type.
source§

impl Mul<Vector4i> for Vector4i

§

type Output = Vector4i

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i32> for Vector4i

§

type Output = Vector4i

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<Vector4i> for Vector4i

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for Vector4i

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl Neg for Vector4i

§

type Output = Vector4i

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl PartialEq<Vector4i> for Vector4i

source§

fn eq(&self, other: &Vector4i) -> 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 Rem<Vector4i> for Vector4i

§

type Output = Vector4i

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for Vector4i

§

type Output = Vector4i

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<Vector4i> for Vector4i

source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
source§

impl RemAssign<i32> for Vector4i

source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
source§

impl Sub<Vector4i> for Vector4i

§

type Output = Vector4i

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i32> for Vector4i

§

type Output = Vector4i

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<Vector4i> for Vector4i

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for Vector4i

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl Zeroable for Vector4i

source§

fn zeroed() -> Self

source§

impl Copy for Vector4i

source§

impl Eq for Vector4i

source§

impl Pod for Vector4i

source§

impl StructuralEq for Vector4i

source§

impl StructuralPartialEq for Vector4i

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,

§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere 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> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

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

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T> AnyBitPattern for Twhere T: Pod,

source§

impl<T> NoUninit for Twhere T: Pod,