Skip to main content

Crate deep_causality_num

Crate deep_causality_num 

Source

Structs§

Float106
A high-precision 106bit floating point number represented as the sum of two f64s.

Traits§

AsPrimitive
A generic interface for casting between machine scalars with the as operator, which admits narrowing and precision loss. Implementers of this trait AsPrimitive should behave like a primitive numeric type (e.g. a newtype around another primitive), and the intended conversion must never fail.
ConstOne
Defines an associated constant representing the multiplicative identity element for Self.
ConstZero
Defines an associated constant representing the additive identity element for Self.
Float
Float requires the in-place arithmetic operators (+=, -=, *=, /=) in addition to the by-value ones from Num. Every real floating-point type supports them, and they let the algebra tower derive AddMonoid/Field/Real/… for any T: Float — so a new float type implements Float and inherits the whole tower through the blanket impls (impl<T: Float> Real for T, etc.).
FloatAsScalar
FloatFromInt
FloatOption
A trait to abstract over float types (f32, f64) and their Option variants.
FromPrimitive
A generic trait for converting a number to a value.
IntAsScalar
Integer
A trait for primitive integer types.
IntoFloat
Num
The base trait for numeric types, covering 0 and 1 values, comparisons, basic numeric operations, and string conversion.
NumAssign
The trait for Num types which also implement assignment operators.
NumAssignOps
Generic trait for types implementing numeric assignment operators (like +=).
NumAssignRef
The trait for NumAssign types which also implement assignment operations taking the second operand by reference.
NumCast
An interface for casting between machine scalars.
NumOps
Generic trait for types implementing basic numeric operations
NumRef
The trait for Num types which also implement numeric operations taking the second operand by reference.
One
Defines a multiplicative identity element for Self.
RefNum
The trait for Num references which implement numeric operations, taking the second operand either by value or by reference.
SignedInt
A trait for signed integer types.
ToPrimitive
UnsignedInt
A trait for unsigned integer types.
Zero
Defines an additive identity element for Self.

Type Aliases§

Matrix3
Vector3