Andrew Gaspar

Results 38 comments of Andrew Gaspar

Related: https://internals.rust-lang.org/t/pre-rfc-v2-safe-transmute/11431

I hadn't considered the issue of sending structs with padding - may have to switch to require something equivalent to `ToBytes` for send buffers.

I'm looking to see if we can get a full "0.11" release for `safe_transmute`. https://github.com/nabijaczleweli/safe-transmute-rs/issues/62

I removed the public `safe-transmute` dependency (though still use it in an example) and added the desired traits myself. I updated the MR text to reflect this.

> That release seems to have happened in the mean time. I think the public dependency would actually be a better choice as interoperability w.r.t. these key traits could be...

To address the issue with `bool`, I added a new type `mpi::Bool` that can receive any bit pattern, but has methods for unwrapping the value and checking validity. So you...

I 100% get your concern and I'd like to eliminate it altogether. Here's where I'm stuck. 1. `Equivalence` designates an `MPI_Datatype` that safely maps the type. If MPI required type-checking,...

> Ah, sorry, this is non-sense, as EquivalenceFromAnyBytes has a less strict contract, it means only what is touch by my Equivalence impl is FromAnyBytes, not the whole type. Sorry...