[][src]Trait aubio_rs::AsNativeStr

pub trait AsNativeStr {
    fn as_native_str(&self) -> &'static str;

    fn as_native_cstr(&self) -> *const c_char { ... }
fn as_rust_str(&self) -> &'static str { ... } }

The trait for null-terminated string constants

Required methods

fn as_native_str(&self) -> &'static str

Implementations should return strings ended with '\0' (for ex.: "energy\0")

Loading content...

Provided methods

fn as_native_cstr(&self) -> *const c_char

Get constant as null-terminated C-string

fn as_rust_str(&self) -> &'static str

Get constant as rust string slice

Loading content...

Implementors

impl AsNativeStr for OnsetMode[src]

impl AsNativeStr for PitchMode[src]

impl AsNativeStr for PitchUnit[src]

impl AsNativeStr for SpecShape[src]

impl AsNativeStr for WindowType[src]

Loading content...