Type Alias nalgebra::base::dimension::Dynamic

source ·
pub type Dynamic = Dyn;
👎Deprecated: use Dyn instead.

Aliased Type§

struct Dynamic(pub usize);

Fields§

§0: usize

Implementations

source§

impl Dyn

source

pub const fn new(value: usize) -> Self

👎Deprecated: use Dyn(value) instead.

A dynamic size equal to value.

Trait Implementations

source§

impl Add<usize> for Dyn

§

type Output = Dyn

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Clone for Dyn

source§

fn clone(&self) -> Dyn

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 Dyn

source§

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

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

impl<'de> Deserialize<'de> for Dyn

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Dim for Dyn

source§

fn try_to_usize() -> Option<usize>

Gets the compile-time value of Self. Returns None if it is not known, i.e., if Self = Dyn.
source§

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().
source§

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().
source§

fn is<D: Dim>() -> bool

source§

impl<D: Dim> DimAdd<D> for Dyn

§

type Output = Dyn

source§

fn add(self, other: D) -> Dyn

source§

impl<D: Dim> DimDiv<D> for Dyn

§

type Output = Dyn

source§

fn div(self, other: D) -> Dyn

source§

impl<D: Dim> DimMax<D> for Dyn

§

type Output = Dyn

source§

fn max(self, other: D) -> Dyn

source§

impl<D: Dim> DimMin<D> for Dyn

§

type Output = Dyn

source§

fn min(self, other: D) -> Dyn

source§

impl<D: Dim> DimMul<D> for Dyn

§

type Output = Dyn

source§

fn mul(self, other: D) -> Dyn

source§

impl<D: Dim> DimSub<D> for Dyn

§

type Output = Dyn

source§

fn sub(self, other: D) -> Dyn

source§

impl PartialEq for Dyn

source§

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

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Sub<usize> for Dyn

§

type Output = Dyn

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Copy for Dyn

source§

impl Eq for Dyn

source§

impl IsDynamic for Dyn

source§

impl IsNotStaticOne for Dyn

source§

impl StructuralPartialEq for Dyn