pub trait JavaHashCode {
// Required method
fn java_hash_code(&self) -> i32;
}Expand description
Java-compatible hashCode support for SelectMessageQueueByHash.
Java’s selector delegates to arg.hashCode(), so Rust arguments need an explicit stable
contract instead of std::hash::Hash, whose output is intentionally implementation-specific.
Required Methods§
fn java_hash_code(&self) -> i32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".