Struct glib::GStringPtr
source · #[repr(transparent)]pub struct GStringPtr(_);
Expand description
NULL
-terminated UTF-8 string as stored in [StrV
].
Unlike [&GStr
] this does not have its length stored.
Implementations§
Trait Implementations§
source§impl AsRef<GStringPtr> for GStringPtr
impl AsRef<GStringPtr> for GStringPtr
source§fn as_ref(&self) -> &GStringPtr
fn as_ref(&self) -> &GStringPtr
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for GStringPtr
impl Clone for GStringPtr
source§fn clone(&self) -> GStringPtr
fn clone(&self) -> GStringPtr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GStringPtr
impl Debug for GStringPtr
source§impl Display for GStringPtr
impl Display for GStringPtr
source§impl Drop for GStringPtr
impl Drop for GStringPtr
source§impl From<GStringPtr> for GString
impl From<GStringPtr> for GString
source§fn from(s: GStringPtr) -> Self
fn from(s: GStringPtr) -> Self
Converts to this type from the input type.
source§impl Hash for GStringPtr
impl Hash for GStringPtr
source§impl IntoGlibPtr<*mut i8> for GStringPtr
impl IntoGlibPtr<*mut i8> for GStringPtr
source§unsafe fn into_glib_ptr(self) -> *mut c_char
unsafe fn into_glib_ptr(self) -> *mut c_char
Transfer: full.
source§impl Ord for GStringPtr
impl Ord for GStringPtr
source§impl PartialEq<&GStr> for GStringPtr
impl PartialEq<&GStr> for GStringPtr
source§impl PartialEq<&str> for GStringPtr
impl PartialEq<&str> for GStringPtr
source§impl PartialEq<GStr> for GStringPtr
impl PartialEq<GStr> for GStringPtr
source§impl PartialEq<GString> for GStringPtr
impl PartialEq<GString> for GStringPtr
source§impl PartialEq<GStringPtr> for &GStr
impl PartialEq<GStringPtr> for &GStr
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<GStringPtr> for &str
impl PartialEq<GStringPtr> for &str
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<GStringPtr> for GStr
impl PartialEq<GStringPtr> for GStr
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<GStringPtr> for GString
impl PartialEq<GStringPtr> for GString
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<GStringPtr> for GStringPtr
impl PartialEq<GStringPtr> for GStringPtr
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<GStringPtr> for String
impl PartialEq<GStringPtr> for String
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<GStringPtr> for str
impl PartialEq<GStringPtr> for str
source§fn eq(&self, other: &GStringPtr) -> bool
fn eq(&self, other: &GStringPtr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<String> for GStringPtr
impl PartialEq<String> for GStringPtr
source§impl PartialEq<str> for GStringPtr
impl PartialEq<str> for GStringPtr
source§impl PartialOrd<&GStr> for GStringPtr
impl PartialOrd<&GStr> for GStringPtr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<&str> for GStringPtr
impl PartialOrd<&str> for GStringPtr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStr> for GStringPtr
impl PartialOrd<GStr> for GStringPtr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GString> for GStringPtr
impl PartialOrd<GString> for GStringPtr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for &GStr
impl PartialOrd<GStringPtr> for &GStr
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for &str
impl PartialOrd<GStringPtr> for &str
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for GStr
impl PartialOrd<GStringPtr> for GStr
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for GString
impl PartialOrd<GStringPtr> for GString
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for GStringPtr
impl PartialOrd<GStringPtr> for GStringPtr
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for String
impl PartialOrd<GStringPtr> for String
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<GStringPtr> for str
impl PartialOrd<GStringPtr> for str
source§fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
fn partial_cmp(&self, other: &GStringPtr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<String> for GStringPtr
impl PartialOrd<String> for GStringPtr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<str> for GStringPtr
impl PartialOrd<str> for GStringPtr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for GStringPtr
Auto Trait Implementations§
impl RefUnwindSafe for GStringPtr
impl !Send for GStringPtr
impl !Sync for GStringPtr
impl Unpin for GStringPtr
impl UnwindSafe for GStringPtr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more