Skip to main content

HashCode

Trait HashCode 

Source
pub trait HashCode {
    // Required method
    fn hash_code(&self) -> i32;
}
Expand description

The hashCode function on all Java Objects

Required Methods§

Source

fn hash_code(&self) -> i32

Returns a Java hash code value for the object.

This follows the principles of the java.lang.Object.hashCode method.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HashCode for bool

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for char

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for f32

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for f64

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for i8

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for i16

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for i32

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for i64

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for isize

Available on 64-bit only.
Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for str

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for u8

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for u16

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for u32

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for u64

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for ()

Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for usize

Available on 64-bit only.
Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for OsStr

Available on Unix only.
Source§

fn hash_code(&self) -> i32

Source§

impl HashCode for Path

Available on Unix or Windows only.
Source§

fn hash_code(&self) -> i32

Source§

impl<K: HashCode + Eq + Hash, V: HashCode, H: BuildHasher> HashCode for HashMap<K, V, H>

Source§

fn hash_code(&self) -> i32

Source§

impl<K: HashCode + Eq, V: HashCode> HashCode for BTreeMap<K, V>

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret> HashCode for fn() -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret, A> HashCode for fn(A) -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret, A, B> HashCode for fn(A, B) -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret, A, B, C> HashCode for fn(A, B, C) -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret, A, B, C, D> HashCode for fn(A, B, C, D) -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret, A, B, C, D, E> HashCode for fn(A, B, C, D, E) -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<Ret, A, B, C, D, E, F> HashCode for fn(A, B, C, D, E, F) -> Ret

Source§

fn hash_code(&self) -> i32

Source§

impl<T> HashCode for *const T

Source§

fn hash_code(&self) -> i32

Source§

impl<T> HashCode for *mut T

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode + Eq + Hash, H: BuildHasher> HashCode for HashSet<T, H>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode + Ord> HashCode for BinaryHeap<T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for &[T]

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for Option<&T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for &T

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for &mut T

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for Box<T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for BTreeSet<T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for LinkedList<T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for VecDeque<T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode> HashCode for Vec<T>

Source§

fn hash_code(&self) -> i32

Source§

impl<T: HashCode, U: HashCode> HashCode for (T, U)

Source§

fn hash_code(&self) -> i32

Implementors§