Answer the question
In order to leave comments, you need to log in
Unions in Rust or how to get u32 from f32?
Actually, in C it is possible to make a union:
union {
int32_t i_;
float f_;
};
Answer the question
In order to leave comments, you need to log in
Have a look at the std::mem::transmute() function
https://doc.rust-lang.org/std/mem/fn.transmute.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question