Expand description
§ndarray_tools
Math for computer graphics based on ndarray. The approach used in ndarray for computer graphics math is highly flexible and performant, even though there are many specialized crates focused on game development and computer graphics.
Modules§
- _private_
phf_ reexport_ for_ macro_ if_ phf_ feature - Reusing main crate. Rust-PHF is a library to generate efficient lookup tables at compile time using perfect hash functions.
- additional_
attributes - Reusing main crate.
- clone_
dyn - Reusing main crate.
- d2
- Reusing main crate. 2D world.
- derive
- Reusing main crate. Derives.
- exposed
- Exposed namespace of the module.
- general
- Reusing main crate. General-purpose things.
- mem
- Reusing main crate. Memort-related things.
- nd
- Reusing main crate. Ndarray things.
- orphan
- Orphan namespace of the module.
- own
- Own namespace of the module.
- prelude
- Prelude to use essentials:
use my_module::prelude::*.
Macros§
- from
- Reusing main crate.
Structs§
- F2x2
- Reusing main crate.
Enums§
- Parse
Error - Reusing main crate.
The
ParseErrorenum is a collection of all the possible reasons an enum can fail to parse from a string.
Traits§
- Add
- Reusing main crate.
The addition operator
+. - AddAssign
- Reusing main crate.
The addition assignment operator
+=. - AsBytes
- Reusing main crate. Trait for converting data to byte slices.
- AsSlice
- Reusing main crate. Trait for converting data to byte slices.
- AsStatic
Ref Deprecated - Reusing main crate.
A cheap reference-to-reference conversion. Used to convert a value to a
reference value with
'staticlifetime within generic code. - Clone
Dyn - Reusing main crate. A trait to upcast a clonable entity and clone it. It’s implemented for all entities which can be cloned.
- Collection
- Reusing main crate.
- Div
- Reusing main crate.
The division operator
/. - DivAssign
- Reusing main crate.
The division assignment operator
/=. - Enum
Count - Reusing main crate.
A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros. - Enum
Message - Reusing main crate.
Associates additional pieces of information with an Enum. This can be
autoimplemented by deriving
EnumMessageand annotating your variants with#[strum(message="...")]. - Enum
Property - Reusing main crate.
EnumPropertyis a trait that makes it possible to store additional information with enum variants. This trait is designed to be used with the macro of the same name in thestrum_macroscrate. Currently, the only string literals are supported in attributes, the other methods will be implemented as additional attribute types become stabilized. - Error
- Reusing main crate.
Erroris a trait representing the basic expectations for error values, i.e., values of typeEinResult<T, E>. - From1
- Reusing main crate.
- From2
- Reusing main crate.
- From3
- Reusing main crate.
- HasDimension
- Reusing main crate.
- Into
- Reusing main crate.
A value-to-value conversion that consumes the input value. The
opposite of
From. - Into1
- Reusing main crate. value-to-value conversion that consumes the input value. Change left and rught, but keep semantic of `From1``.
- Into
Enum Iterator - Reusing main crate.
This trait designates that an
Enumcan be iterated over. It can be auto generated usingstrum_macroson your behalf. - Into
Iterator - Reusing main crate.
Conversion into an
Iterator. - Mul
- Reusing main crate.
The multiplication operator
*. - MulAssign
- Reusing main crate.
The multiplication assignment operator
*=. - NdFloat
- Reusing main crate.
Floating-point element types
f32andf64. - Pod
- Reusing main crate. Marker trait for “plain old data”.
- Sub
- Reusing main crate.
The subtraction operator
-. - SubAssign
- Reusing main crate.
The subtraction assignment operator
-=. - Sum
- Reusing main crate. Trait to represent types that can be created by summing up an iterator.
- TryInto
- Reusing main crate.
An attempted conversion that consumes
self, which may or may not be expensive. - Variant
Iterator - Reusing main crate.
- Variant
Metadata - Reusing main crate.
- Variant
Names - Reusing main crate.
A trait for retrieving the names of each variant in Enum. This trait can
be autoderived by
strum_macros.
Functions§
- clone
- Reusing main crate.
- clone_
into_ box - Reusing main crate.
Attribute Macros§
Derive Macros§
- Add
- Reusing main crate.
- AddAssign
- Reusing main crate.
- AsMut
- Reusing main crate.
- AsRef
- Reusing main crate.
- AsRef
Str - Reusing main crate.
Converts enum variants to
&'static str. - AsStatic
Str - Reusing main crate.
- Constructor
- Reusing main crate.
- Deref
- Reusing main crate.
- Deref
Mut - Reusing main crate.
- Display
- Reusing main crate.
- Div
- Reusing main crate.
- DivAssign
- Reusing main crate.
- Enum
Count - Reusing main crate.
Add a constant
usizeequal to the number of variants. - Enum
Discriminants - Reusing main crate. Generate a new type with only the discriminant names.
- EnumIs
- Reusing main crate.
Generated
is_*()methods for each variant. E.g.Color.is_red(). - Enum
Iter - Reusing main crate. Creates a new type that iterates of the variants of an enum.
- Enum
Message - Reusing main crate. Add a verbose message to an enum variant.
- Enum
Property - Reusing main crate. Add custom properties to enum variants.
- Enum
String - Reusing main crate. Converts strings to enum variants based on their name.
- Enum
TryAs - Reusing main crate.
Generated
try_as_*()methods for all tuple-style variants. E.g.Message.try_as_write(). - Enum
Variant Names - Reusing main crate.
Implements
Strum::VariantNameswhich adds an associated constantVARIANTSwhich is an array of discriminant names. - Error
- Reusing main crate.
- From
- Reusing main crate.
- From
Repr - Reusing main crate. Add a function to enum that allows accessing variants by its discriminant
- FromStr
- Reusing main crate.
- Index
- Reusing main crate.
- Index
Mut - Reusing main crate.
- Inner
From - Reusing main crate.
- Into
- Reusing main crate.
- Into
Iterator - Reusing main crate.
- Into
Static Str - Reusing main crate.
Implements
From<MyEnum> for &'static stron an enum. - IsVariant
- Reusing main crate.
- Mul
- Reusing main crate.
- MulAssign
- Reusing main crate.
- New
- Reusing main crate.
- Not
- Reusing main crate. Provides an automatic Not trait implementation for struct.
- Pod
- Reusing main crate.
Derive the
Podtrait for a struct - Sub
- Reusing main crate.
- SubAssign
- Reusing main crate.
- Sum
- Reusing main crate.
- ToString
- Reusing main crate.
implements
std::string::ToStringon an enum - TryInto
- Reusing main crate.
- Unwrap
- Reusing main crate.
- Variadic
From - Reusing main crate.