Struct ggez::graphics::na::Dynamic
[−]
[src]
pub struct Dynamic { /* fields omitted */ }
Dim of dynamically-sized algebraic entities.
Methods
impl Dynamic
[src]
Trait Implementations
impl Copy for Dynamic
[src]
impl Clone for Dynamic
[src]
fn clone(&self) -> Dynamic
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<D> DimDiv<D> for Dynamic where
D: Dim,
[src]
D: Dim,
impl Dim for Dynamic
[src]
fn try_to_usize() -> Option<usize>
[src]
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) -> Dynamic
[src]
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]
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]
D: Dim,
impl<D> DimAdd<D> for Dynamic where
D: Dim,
[src]
D: Dim,
impl<D> DimMin<D> for Dynamic where
D: Dim,
[src]
D: Dim,
impl<D> DimMul<D> for Dynamic where
D: Dim,
[src]
D: Dim,
impl IsDynamic for Dynamic
[src]
impl PartialEq<Dynamic> for Dynamic
[src]
fn eq(&self, __arg_0: &Dynamic) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dynamic) -> bool
[src]
This method tests for !=
.
impl Add<usize> for Dynamic
[src]
impl Debug for Dynamic
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> DimMax<D> for Dynamic where
D: Dim,
[src]
D: Dim,
impl IsNotStaticOne for Dynamic
[src]
impl<D> DimSub<D> for Dynamic where
D: Dim,
[src]
D: Dim,