Struct nalgebra::core::dimension::U2
[−]
[src]
pub struct U2;
Trait Implementations
impl Debug for U2
[src]
impl Copy for U2
[src]
impl Clone for U2
[src]
fn clone(&self) -> U2
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for U2
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for U2
[src]
fn eq(&self, __arg_0: &U2) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for U2
[src]
impl Dim for U2
[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) -> Self
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
Gets the run-time value of self
. For type-level integers, this is the same as Self::try_to_usize().unwrap()
. Read more
impl DimName for U2
[src]
type Value = U2
fn name() -> Self
The name of this dimension, i.e., the singleton Self
.
fn dim() -> usize
The value of this dimension.