Expand description
Cast utilities.
Re-exports§
pub use target64::*;
Modules§
- Safe casts for 64bit platforms
Macros§
- Implement
CastLossy
for the specified types. - Implement
TryCastFrom
for the specified types. This is only necessary for types for whichas
exists, butTryFrom
doesn’t (notably floats).
Traits§
- A trait for safe, simple, and infallible casts.
- The inverse of
CastFrom
. Implemented automatically, just likestd::convert::Into
. - A trait for potentially-lossy casts. Typically useful when converting from integers to floating point, and you want the nearest floating-point number to your integer when your integer is large, or vice versa.
- A trait for reinterpreting casts.
- A trait for attempted casts.
Functions§
- Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
]. - Casts [
$from
] to [$to
].