# [−][src]Struct nalgebra_glm::U3

A type level dimension.

## Trait Implementations

`impl Debug for U3`

[src]

`impl Debug for U3`

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

[src]

`fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`

Formats the value using the given formatter. Read more

`impl Dim for U3`

[src]

`impl Dim for U3`

`fn try_to_usize() -> Option<usize>`

[src]

`fn try_to_usize() -> Option<usize>`

Gets the compile-time value of `Self`

. Returns `None`

if it is not known, i.e., if `Self = Dynamic`

. Read more

`fn from_usize(dim: usize) -> U3`

[src]

`fn from_usize(dim: usize) -> U3`

Builds an instance of `Self`

from a run-time value. Panics if `Self`

is a type-level integer and `dim != Self::try_to_usize().unwrap()`

. Read more

`fn value(&self) -> usize`

[src]

`fn value(&self) -> usize`

Gets the run-time value of `self`

. For type-level integers, this is the same as `Self::try_to_usize().unwrap()`

. Read more

`fn is<D>() -> bool where`

D: Dim,

[src]

`fn is<D>() -> bool where`

D: Dim,

`impl IsNotStaticOne for U3`

[src]

`impl IsNotStaticOne for U3`

`impl Eq for U3`

[src]

`impl Eq for U3`

`impl DimName for U3`

[src]

`impl DimName for U3`

`type Value = UInt<UInt<UTerm, B1>, B1>`

`fn name() -> U3`

[src]

`fn name() -> U3`

The name of this dimension, i.e., the singleton `Self`

.

`fn dim() -> usize`

[src]

`fn dim() -> usize`

The value of this dimension.

`impl Hash for U3`

[src]

`impl Hash for U3`

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

__H: Hasher,

[src]

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

__H: Hasher,

Feeds this value into the given [`Hasher`

]. Read more

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

H: Hasher,

1.3.0[src]

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

H: Hasher,

Feeds a slice of this type into the given [`Hasher`

]. Read more

`impl Copy for U3`

[src]

`impl Copy for U3`

`impl PartialEq<U3> for U3`

[src]

`impl PartialEq<U3> for U3`

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

[src]

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

This method tests for `self`

and `other`

values to be equal, and is used by `==`

. Read more

```
#[must_use]
fn ne(&self, other: &Rhs) -> bool
```

1.0.0[src]

```
#[must_use]
fn ne(&self, other: &Rhs) -> bool
```

This method tests for `!=`

.

`impl Serialize for U3`

[src]

`impl Serialize for U3`

`fn serialize<__S>(`

&self,

__serializer: __S

) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where

__S: Serializer,

[src]

`fn serialize<__S>(`

&self,

__serializer: __S

) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where

__S: Serializer,

Serialize this value into the given Serde serializer. Read more

`impl<'de> Deserialize<'de> for U3`

[src]

`impl<'de> Deserialize<'de> for U3`

`fn deserialize<__D>(`

__deserializer: __D

) -> Result<U3, <__D as Deserializer<'de>>::Error> where

__D: Deserializer<'de>,

[src]

`fn deserialize<__D>(`

__deserializer: __D

) -> Result<U3, <__D as Deserializer<'de>>::Error> where

__D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

`impl Clone for U3`

[src]

`impl Clone for U3`

## Auto Trait Implementations

## Blanket Implementations

`impl<T> From for T`

[src]

`impl<T> From for T`

`impl<T, U> Into for T where`

U: From<T>,

[src]

`impl<T, U> Into for T where`

U: From<T>,

`impl<T> ToOwned for T where`

T: Clone,

[src]

`impl<T> ToOwned for T where`

T: Clone,

`type Owned = T`

`fn to_owned(&self) -> T`

[src]

`fn to_owned(&self) -> T`

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

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

[src]

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

## 🔬 This is a nightly-only experimental API. (`toowned_clone_into`

)

recently added

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

`impl<T, U> TryFrom for T where`

T: From<U>,

[src]

`impl<T, U> TryFrom for T where`

T: From<U>,

`type Error = !`

`try_from`

)The type returned in the event of a conversion error.

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

[src]

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

`try_from`

)Performs the conversion.

`impl<T> Borrow for T where`

T: ?Sized,

[src]

`impl<T> Borrow for T where`

T: ?Sized,

`impl<T> Any for T where`

T: 'static + ?Sized,

[src]

`impl<T> Any for T where`

T: 'static + ?Sized,

`fn get_type_id(&self) -> TypeId`

[src]

`fn get_type_id(&self) -> TypeId`

## 🔬 This is a nightly-only experimental API. (`get_type_id`

)

this method will likely be replaced by an associated static

Gets the `TypeId`

of `self`

. Read more

`impl<T, U> TryInto for T where`

U: TryFrom<T>,

[src]

`impl<T, U> TryInto for T where`

U: TryFrom<T>,

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

`try_from`

)The type returned in the event of a conversion error.

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

[src]

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

`try_from`

)Performs the conversion.

`impl<T> BorrowMut for T where`

T: ?Sized,

[src]

`impl<T> BorrowMut for T where`

T: ?Sized,

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

[src]

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

Mutably borrows from an owned value. Read more

`impl<SS, SP> SupersetOf for SP where`

SS: SubsetOf<SP>,

`impl<SS, SP> SupersetOf for SP where`

SS: SubsetOf<SP>,

`fn to_subset(&self) -> Option<SS>`

`fn to_subset(&self) -> Option<SS>`

The inverse inclusion map: attempts to construct `self`

from the equivalent element of its superset. Read more

`fn is_in_subset(&self) -> bool`

`fn is_in_subset(&self) -> bool`

Checks if `self`

is actually part of its subset `T`

(and can be converted to it).

`unsafe fn to_subset_unchecked(&self) -> SS`

`unsafe fn to_subset_unchecked(&self) -> SS`

Use with care! Same as `self.to_subset`

but without any property checks. Always succeeds.

`fn from_subset(element: &SS) -> SP`

`fn from_subset(element: &SS) -> SP`

The inclusion map: converts `self`

to the equivalent element of its superset.

`impl<T> DeserializeOwned for T where`

T: Deserialize<'de>,

[src]

`impl<T> DeserializeOwned for T where`

T: Deserialize<'de>,

`impl<T> Scalar for T where`

T: Copy + PartialEq<T> + Any + Debug,

[src]

`impl<T> Scalar for T where`

T: Copy + PartialEq<T> + Any + Debug,

`impl<D> DimAdd for D where`

D: DimName,

[src]

`impl<D> DimAdd for D where`

D: DimName,

`impl<D1, D2> DimAdd for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Add<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimAdd for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Add<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn add(self, D2) -> <D1 as DimAdd<D2>>::Output`

[src]

`fn add(self, D2) -> <D1 as DimAdd<D2>>::Output`

`impl<D1, D2> DimNameAdd for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Add<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimNameAdd for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Add<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn add(self, D2) -> <D1 as DimNameAdd<D2>>::Output`

[src]

`fn add(self, D2) -> <D1 as DimNameAdd<D2>>::Output`

`impl<D> DimMul for D where`

D: DimName,

[src]

`impl<D> DimMul for D where`

D: DimName,

`impl<D1, D2> DimMul for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimMul for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn mul(self, D2) -> <D1 as DimMul<D2>>::Output`

[src]

`fn mul(self, D2) -> <D1 as DimMul<D2>>::Output`

`impl<D1, D2> DimNameMul for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimNameMul for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn mul(self, D2) -> <D1 as DimNameMul<D2>>::Output`

[src]

`fn mul(self, D2) -> <D1 as DimNameMul<D2>>::Output`

`impl<D1, D2> DimSub for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimSub for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn sub(self, D2) -> <D1 as DimSub<D2>>::Output`

[src]

`fn sub(self, D2) -> <D1 as DimSub<D2>>::Output`

`impl<D> DimSub for D where`

D: DimName,

[src]

`impl<D> DimSub for D where`

D: DimName,

`impl<D1, D2> DimNameSub for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimNameSub for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn sub(self, D2) -> <D1 as DimNameSub<D2>>::Output`

[src]

`fn sub(self, D2) -> <D1 as DimNameSub<D2>>::Output`

`impl<D1, D2> DimDiv for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Div<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimDiv for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Div<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn div(self, D2) -> <D1 as DimDiv<D2>>::Output`

[src]

`fn div(self, D2) -> <D1 as DimDiv<D2>>::Output`

`impl<D> DimDiv for D where`

D: DimName,

[src]

`impl<D> DimDiv for D where`

D: DimName,

`impl<D1, D2> DimNameDiv for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Div<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimNameDiv for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Div<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn div(self, D2) -> <D1 as DimNameDiv<D2>>::Output`

[src]

`fn div(self, D2) -> <D1 as DimNameDiv<D2>>::Output`

`impl<D1, D2> DimMin for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Min<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimMin for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Min<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn min(self, D2) -> <D1 as DimMin<D2>>::Output`

[src]

`fn min(self, D2) -> <D1 as DimMin<D2>>::Output`

`impl<D> DimMin for D where`

D: DimName,

[src]

`impl<D> DimMin for D where`

D: DimName,

`impl<D1, D2> DimNameMin for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Min<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimNameMin for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Min<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn min(self, D2) -> <D1 as DimNameMin<D2>>::Output`

[src]

`fn min(self, D2) -> <D1 as DimNameMin<D2>>::Output`

`impl<D> DimMax for D where`

D: DimName,

[src]

`impl<D> DimMax for D where`

D: DimName,

`impl<D1, D2> DimMax for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Max<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimMax for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Max<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn max(self, D2) -> <D1 as DimMax<D2>>::Output`

[src]

`fn max(self, D2) -> <D1 as DimMax<D2>>::Output`

`impl<D1, D2> DimNameMax for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Max<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

`impl<D1, D2> DimNameMax for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Max<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn max(self, D2) -> <D1 as DimNameMax<D2>>::Output`

[src]

`fn max(self, D2) -> <D1 as DimNameMax<D2>>::Output`

`impl<T> Same for T`

`impl<T> Same for T`

`type Output = T`

Should always be `Self`