Crate aligned_cmov

Source

Re-exports§

pub use aligned_array::subtle;
pub use generic_array::typenum;

Modules§

arr
Implementation for arr! macro.

Macros§

arr
Macro allowing for easy generation of Generic Arrays. Example: let test = arr![u32; 1, 2, 3];

Structs§

A8
8-byte alignment
A64
64-byte alignment
Aligned
A newtype with alignment of at least A bytes
GenericArray
Struct representing a generic array - GenericArray<T, N> works like [T; N]

Traits§

ArrayLength
Trait making GenericArray work, marking types to be used as length of an array
AsAlignedChunks
Trait for types which can be viewed as aligned chunks of bytes This should generally just be, larger chunks of dumb bytes or similar.
AsNeSlice
Trait for types which can be viewed as native-endian integer slices This should generally just be, aligned slices of dumb bytes or similar. (Indeed the only intended implementor is Aligned<A8, GenericArray<u8, N>>)
CMov
CMov represents types that can be (obliviously) conditionally moved.

Functions§

Aligned
Changes the alignment of value to be at least A bytes
cswap

Type Aliases§

A8Bytes
An alias representing 8-byte aligned bytes, mainly to save typing
A64Bytes
An alias representing 64-byte aligned bytes, mainly to save typing