Skip to main content

Crate aligned_cmov

Crate aligned_cmov 

Source

Re-exports§

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

Macros§

arr
Macro allowing for easy construction of Generic Arrays.

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
ArrayLength is a type-level Unsigned integer used to define the number of elements in a GenericArray.
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