Docs.rs
bytemuck-1.0.0
bytemuck 1.0.0
Docs.rs crate page
BlueOak-1.0.0
Links
Repository
crates.io
Source
Owners
Lokathor
github:rust-bus:maintainers
Dependencies
Versions
Go to latest version
Platform
i686-apple-darwin
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
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
[
−
]
[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.