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

Function lean_string_cstr

src/string.rs:32–35  ·  view source on GitHub ↗
(o: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

30
31#[inline(always)]
32pub unsafe fn lean_string_cstr(o: b_lean_obj_arg) -> *const u8 {
33 debug_assert!(lean_is_string(o));
34 raw_field!(lean_to_string(o), lean_string_object, m_data) as *const _
35}
36
37#[inline(always)]
38pub unsafe fn lean_string_size(o: b_lean_obj_arg) -> usize {

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected