Skip to main content

str_slots

Function str_slots 

Source
pub fn str_slots<S: AsRef<str> + ?Sized>(value: &S) -> (*const u8, usize)
Expand description

Borrow a string-like argument as the (ptr, len) slots of a callback method call.