[−][src]Crate lokacore
Lokathor's crate of core-only odds and ends.
Re-exports
pub use math::*; |
Modules
| arch | Architecture specific functionality, safe wrapped. |
| math | This module is for math utils missing from core. |
Macros
| branchless_abs | The wrapping absolute value of any signed integer. |
| branchless_force_bits | Force bits of an unsigned value off or on. |
| branchless_masked_merge | Bitwise merge two values according to a bit mask. |
| branchless_max | The maximum of two integer values. |
| branchless_min | The minimum of two integer values. |
| branchless_negate | Negate a signed integer value or not. |
| branchless_opposite_sign | If two signed values have opposite sign (zero counts as positive). |
| branchless_pow_of_2_or_zero | If an unsigned value is a power of 2 (or is 0). |
| shuffle128 | Shuffles around some |
| shuffle128d | Shuffles around some |
Structs
| Align2 | Wrap the inner value to a minimum alignment of 2. |
| Align4 | Wrap the inner value to a minimum alignment of 4. |
| Align8 | Wrap the inner value to a minimum alignment of 8. |
| Align16 | Wrap the inner value to a minimum alignment of 16. |
| Align32 | Wrap the inner value to a minimum alignment of 32. |
Enums
| PodCastError | The things that can go wrong when casting between |
Traits
| Pod | Marker trait for "plain old data". |
| Zeroable | Trait for types that can be safely created with |
Functions
| bytes_of | Re-interprets |
| bytes_of_mut | Re-interprets |
| cast | Cast |
| cast_mut | Cast |
| cast_ref | Cast |
| cast_slice | Cast |
| cast_slice_mut | Cast |
| pod_align_to | As |
| pod_align_to_mut | As |
| try_cast | Try to cast |
| try_cast_mut | Try to convert a |
| try_cast_ref | Try to convert a |
| try_cast_slice | Try to convert |
| try_cast_slice_mut | Try to convert |