Docs.rs
bytemuck-1.2.0
bytemuck 1.2.0
Docs.rs crate page
Zlib
Links
Repository
Crates.io
Source
Owners
Lokathor
github:rust-bus:maintainers
Dependencies
Versions
1.13.1
1.13.0
1.12.4
1.12.3
1.12.2
1.12.1
1.12.0
1.11.0
1.10.0
1.9.1
1.9.0
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.1
1.4.0
1.3.1
1.3.0
1.3.0-alpha.0
1.2.0
1.2.0-alpha.1
1.1.0
1.0.1
1.0.0
0.1.2
0.1.1
0.1.0
Go to latest version
Platform
x86_64-unknown-linux-gnu
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
bytemuck
All crates
[
−
]
[src]
Function
bytemuck
::
try_cast
pub fn try_cast<A:
Pod
, B:
Pod
>(a: A) ->
Result
<B,
PodCastError
>
Try to cast
T
into
U
.
Failure
If the types don't have the same size this fails.