MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_string_eq

Function lean_string_eq

src/string.rs:68–70  ·  view source on GitHub ↗
(s1: b_lean_obj_arg, s2: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

66
67#[inline]
68pub unsafe fn lean_string_eq(s1: b_lean_obj_arg, s2: b_lean_obj_arg) -> bool {
69 s1 == s2 || (lean_string_size(s1) == lean_string_size(s2) && lean_string_eq_cold(s1, s2))
70}
71
72#[inline(always)]
73pub unsafe fn lean_string_ne(s1: b_lean_obj_arg, s2: b_lean_obj_arg) -> bool {

Callers 2

lean_string_neFunction · 0.85
lean_string_dec_eqFunction · 0.85

Calls 1

lean_string_sizeFunction · 0.85

Tested by

no test coverage detected