Skip to content

Commit

Permalink
Add conversion traits for unified type casts:
Browse files Browse the repository at this point in the history
* `Reinterpret`
* `TryReinterpret`
* `ReinterpretInner`
* `TryReinterpretInner`
  • Loading branch information
Jarcho committed Apr 2, 2023
1 parent 8391afa commit eea8678
Show file tree
Hide file tree
Showing 5 changed files with 1,772 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ extern_crate_std = ["extern_crate_alloc"]
zeroable_maybe_uninit = []
zeroable_atomics = []
min_const_generics = []
wasm_simd = [] # Until >= 1.54.0 is MSRV this is an off-by-default feature.
aarch64_simd = [] # Until >= 1.59.0 is MSRV this is an off-by-default feature.

# Off-by-default until bytemuck's MSRV is raised.
wasm_simd = [] # Requires MSRV >= 1.54.0.
unified_cast = [] # Requires MSRV >= 1.57.0.
aarch64_simd = [] # Requires MSRV >= 1.59.0.
non_null_slice_cast = [] # Requires MSRV >= 1.63.0.

# Do not use if you can avoid it, because this is unsound.
unsound_ptr_pod_impl = []
Expand All @@ -42,6 +46,8 @@ features = [
"zeroable_atomics",
"min_const_generics",
"wasm_simd",
"unified_cast",
"non_null_slice_cast",
]

[package.metadata.playground]
Expand All @@ -54,4 +60,6 @@ features = [
"zeroable_atomics",
"min_const_generics",
"wasm_simd",
"unified_cast",
"non_null_slice_cast",
]
Loading

0 comments on commit eea8678

Please sign in to comment.