[][src]Enum glib::GString

pub enum GString {
    ForeignOwned(Option<CString>),
    Borrowed(*const c_charusize),
    Owned(*mut c_charusize),
}

Variants

ForeignOwned(Option<CString>)
Borrowed(*const c_charusize)
Owned(*mut c_charusize)

Methods

impl GString[src]

pub unsafe fn new(ptr: *mut c_char) -> Self[src]

pub unsafe fn new_borrowed(ptr: *const c_char) -> Self[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl AsRef<OsStr> for GString[src]

impl AsRef<str> for GString[src]

impl Borrow<str> for GString[src]

impl Debug for GString[src]

impl Deref for GString[src]

type Target = str

The resulting type after dereferencing.

impl Display for GString[src]

impl Drop for GString[src]

impl Eq for GString[src]

impl<'a> From<&'a CStr> for GString[src]

impl<'a> From<&'a str> for GString[src]

impl From<Box<str>> for GString[src]

impl From<CString> for GString[src]

impl From<GString> for String[src]

impl From<GString> for Box<str>[src]

impl From<String> for GString[src]

impl From<Vec<u8>> for GString[src]

impl FromGlibContainerAsVec<*const i8, *const *const i8> for GString[src]

impl FromGlibContainerAsVec<*const i8, *mut *const i8> for GString[src]

impl FromGlibContainerAsVec<*mut i8, *const *mut i8> for GString[src]

impl FromGlibContainerAsVec<*mut i8, *mut *mut i8> for GString[src]

impl FromGlibPtrArrayContainerAsVec<*const i8, *const *const i8> for GString[src]

impl FromGlibPtrArrayContainerAsVec<*const i8, *mut *const i8> for GString[src]

impl FromGlibPtrArrayContainerAsVec<*mut i8, *const *mut i8> for GString[src]

impl FromGlibPtrArrayContainerAsVec<*mut i8, *mut *mut i8> for GString[src]

impl<'a> FromValueOptional<'a> for GString[src]

impl GlibPtrDefault for GString[src]

impl Hash for GString[src]

impl Ord for GString[src]

impl<'a> PartialEq<&'a str> for GString[src]

impl PartialEq<GString> for GString[src]

impl PartialEq<GString> for String[src]

impl<'a> PartialEq<GString> for &'a str[src]

impl PartialEq<GString> for str[src]

impl PartialEq<String> for GString[src]

impl PartialEq<str> for GString[src]

impl PartialOrd<GString> for GString[src]

impl PartialOrd<GString> for String[src]

impl PartialOrd<GString> for str[src]

impl PartialOrd<String> for GString[src]

impl PartialOrd<str> for GString[src]

impl Send for GString[src]

impl SetValue for GString[src]

impl SetValueOptional for GString[src]

impl StaticType for GString[src]

impl Sync for GString[src]

Auto Trait Implementations

impl RefUnwindSafe for GString

impl Unpin for GString

impl UnwindSafe for GString

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<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[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.