[−][src]Enum glib::GString
Variants
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]
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]
unsafe fn from_glib_none_num_as_vec(
ptr: *const *const c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *const *const c_char,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
_: *const *const c_char,
_: usize
) -> Vec<Self>
[src]
_: *const *const c_char,
_: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
_: *const *const c_char,
_: usize
) -> Vec<Self>
[src]
_: *const *const c_char,
_: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*const i8, *mut *const i8> for GString
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *const c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *const c_char,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *const c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *const c_char,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *const c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *const c_char,
num: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*mut i8, *const *mut i8> for GString
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *const *mut c_char,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
_: *const *mut c_char,
_: usize
) -> Vec<Self>
[src]
_: *const *mut c_char,
_: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
_: *const *mut c_char,
_: usize
) -> Vec<Self>
[src]
_: *const *mut c_char,
_: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*mut i8, *mut *mut i8> for GString
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut c_char,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut c_char,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut c_char,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut c_char,
num: usize
) -> Vec<Self>
impl FromGlibPtrArrayContainerAsVec<*const i8, *const *const i8> for GString
[src]
unsafe fn from_glib_none_as_vec(ptr: *const *const c_char) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *const *const c_char) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *const *const c_char) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*const i8, *mut *const i8> for GString
[src]
unsafe fn from_glib_none_as_vec(ptr: *mut *const c_char) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *const c_char) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *const c_char) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut i8, *const *mut i8> for GString
[src]
unsafe fn from_glib_none_as_vec(ptr: *const *mut c_char) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *const *mut c_char) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *const *mut c_char) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut i8, *mut *mut i8> for GString
[src]
unsafe fn from_glib_none_as_vec(ptr: *mut *mut c_char) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut c_char) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut c_char) -> Vec<Self>
[src]
impl<'a> FromValueOptional<'a> for GString
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
impl GlibPtrDefault for GString
[src]
impl Hash for GString
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for GString
[src]
fn cmp(&self, other: &GString) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[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]
fn partial_cmp(&self, other: &GString) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<GString> for String
[src]
fn partial_cmp(&self, other: &GString) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<GString> for str
[src]
fn partial_cmp(&self, other: &GString) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<String> for GString
[src]
fn partial_cmp(&self, other: &String) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<str> for GString
[src]
fn partial_cmp(&self, other: &str) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Send for GString
[src]
impl SetValue for GString
[src]
impl SetValueOptional for GString
[src]
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)
[src]
impl StaticType for GString
[src]
fn static_type() -> Type
[src]
impl Sync for GString
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *const GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
&'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
&'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *const GPtrArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *mut GArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *mut GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
&'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
&'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *mut GPtrArray
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&Self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,