Trait bliss_audio_aubio_rs::AsNativeStr
source · pub trait AsNativeStr {
// Required method
fn as_native_str(&self) -> &'static str;
// Provided methods
fn as_native_cstr(&self) -> *const c_char { ... }
fn as_rust_str(&self) -> &'static str { ... }
}
Expand description
The trait for null-terminated string constants
Required Methods§
sourcefn as_native_str(&self) -> &'static str
fn as_native_str(&self) -> &'static str
Implementations should return strings ended with ‘\0’
(for ex.: "energy\0"
)
Provided Methods§
sourcefn as_native_cstr(&self) -> *const c_char
fn as_native_cstr(&self) -> *const c_char
Get constant as null-terminated C-string
sourcefn as_rust_str(&self) -> &'static str
fn as_rust_str(&self) -> &'static str
Get constant as rust string slice