[][src]Struct janus_plugin::utils::GLibString

pub struct GLibString { /* fields omitted */ }

A C-style string which was allocated using glibc. Derefs to a CStr.

Methods

impl GLibString[src]

pub unsafe fn from_chars(chars: *const c_char) -> Option<Self>[src]

Creates a GLibString from a glibc-allocated pointer to a C-style string.

Trait Implementations

impl Debug for GLibString[src]

impl Deref for GLibString[src]

type Target = CStr

The resulting type after dereferencing.

impl Drop for GLibString[src]

impl Send for GLibString[src]

impl Serialize for GLibString[src]

impl Sync for GLibString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.