tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 497HTML 254C 19JavaScript 81329 Definiciones

⎇ 30c626da4e2af7a2ca4f8bb2b014ab2a63d44dda src/ref_eq.rs Rust · 5 líneas · 186 B Historia Quién tocó qué crudo

Add (nightly) no_std support 30c626da4 · Maximilian Goisser ·

1/// Determine if two borrowed pointers point to the same thing.
2#[inline]
3pub fn ref_eq<'a, 'b, T>(thing: &'a T, other: &'b T) -> bool {
4    (thing as *const T) == (other as *const T)
5}