Docs.rs
mdarray-0.8.0
mdarray 0.8.0
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Repository
crates.io
Source
Owners
fre-hu
Dependencies
serde ^1.0
normal
optional
serde_test ^1.0
dev
Versions
100%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Dyn
mdarray
0.8.0
Dyn
Trait Implementations
Axis
Dim
From<Const<N>>
IntoShape
In crate mdarray
mdarray
Type Alias
Dyn
Copy item path
Source
pub type Dyn =
usize
;
Expand description
Dynamically-sized dimension type.
Trait Implementations
§
Source
§
impl
Axis
for
Dyn
Source
§
type
Dim
<S:
Shape
> =
usize
Corresponding dimension.
Source
§
type
Init
<S:
Shape
> =
DynRank
Shape for the previous dimensions excluding the current dimension.
Source
§
type
Rest
<S:
Shape
> =
DynRank
Shape for the next dimensions excluding the current dimension.
Source
§
type
Remove
<S:
Shape
> = <<S as
Shape
>::
Tail
as
Shape
>::
Dyn
Remove the dimension from the shape.
Source
§
type
Resize
<D:
Dim
, S:
Shape
> = <S as
Shape
>::
Dyn
Resize the dimension in the shape.
Source
§
fn
index
(self, rank:
usize
) ->
usize
Returns the dimension index.
Source
§
impl
Dim
for
Dyn
Source
§
const
SIZE
:
Option
<
usize
> = None
Dimension size if known statically, or
None
if dynamic.
Source
§
type
Merge
<D:
Dim
> = D
Merge dimensions, where constant size is preferred over dynamic.
Source
§
fn
from_size
(size:
usize
) -> Self
Creates an array dimension with the given size.
Read more
Source
§
fn
size
(self) ->
usize
Returns the number of elements in the dimension.
Source
§
impl<const N:
usize
>
From
<
Const
<N>> for
Dyn
Source
§
fn
from
(_:
Const
<N>) -> Self
Converts to this type from the input type.
Source
§
impl
IntoShape
for
Dyn
Source
§
type
IntoShape
= (
usize
,)
Which kind of array shape are we turning this into?
Source
§
fn
into_shape
(self) -> Self::
IntoShape
Creates an array shape from a value.