[][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 GlibPtrDefault for GString[src]

impl<'a> ToGlibPtr<'a, *const i8> for GString[src]

type Storage = &'a Self

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtr<'a, *mut i8> for GString[src]

type Storage = &'a Self

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl FromGlibPtrNone<*const i8> for GString[src]

impl FromGlibPtrNone<*mut u8> for GString[src]

impl FromGlibPtrNone<*mut i8> for GString[src]

impl FromGlibPtrFull<*const i8> for GString[src]

impl FromGlibPtrFull<*mut u8> for GString[src]

impl FromGlibPtrFull<*mut i8> for GString[src]

impl FromGlibPtrBorrow<*const i8> for GString[src]

impl FromGlibPtrBorrow<*mut u8> for GString[src]

impl FromGlibPtrBorrow<*mut i8> 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, *mut *const i8> for GString[src]

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

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

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

impl StaticType for GString[src]

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

impl SetValueOptional for GString[src]

impl SetValue for GString[src]

impl PartialEq<GString> for GString[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl PartialEq<GString> for String[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl PartialEq<str> for GString[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl PartialEq<String> for GString[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl PartialEq<GString> for str[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl AsRef<str> for GString[src]

impl AsRef<OsStr> for GString[src]

impl Ord for GString[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl From<GString> for String[src]

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

impl From<String> for GString[src]

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

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

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

impl From<CString> for GString[src]

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

impl Drop for GString[src]

impl Eq for GString[src]

impl PartialOrd<GString> for GString[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<GString> for String[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<String> for GString[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<GString> for str[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<str> for GString[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for GString[src]

impl Deref for GString[src]

type Target = str

The resulting type after dereferencing.

impl Hash for GString[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for GString[src]

impl Borrow<str> for GString[src]

Auto Trait Implementations

impl !Send for GString

impl !Sync for GString

Blanket Implementations

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

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

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

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

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

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.