[−][src]Struct imgui::ImStr
A UTF-8 encoded, implicitly null-terminated string slice.
Implementations
impl ImStr
[src]
pub unsafe fn from_ptr_unchecked<'a>(ptr: *const c_char) -> &'a ImStr
[src]
Wraps a raw UTF-8 encoded C string
pub unsafe fn from_utf8_with_nul_unchecked(bytes: &[u8]) -> &ImStr
[src]
Converts a slice of bytes to an imgui-rs string slice without checking for valid UTF-8 or null termination.
pub unsafe fn from_cstr_unchecked(value: &CStr) -> &ImStr
[src]
Converts a CStr reference to an imgui-rs string slice without checking for valid UTF-8.
pub fn as_ptr(&self) -> *const c_char
[src]
Converts an imgui-rs string slice to a raw pointer
pub fn to_str(&self) -> &str
[src]
Converts an imgui-rs string slice to a normal string slice
pub fn is_empty(&self) -> bool
[src]
Returns true if the imgui-rs string slice is empty
Trait Implementations
impl AsRef<CStr> for ImStr
[src]
impl AsRef<ImStr> for ImString
[src]
impl AsRef<ImStr> for ImStr
[src]
impl AsRef<str> for ImStr
[src]
impl Borrow<ImStr> for ImString
[src]
impl Debug for ImStr
[src]
impl<'a> Default for &'a ImStr
[src]
impl Display for ImStr
[src]
impl Eq for ImStr
[src]
impl<'a> From<&'a ImStr> for Cow<'a, ImStr>
[src]
impl Hash for ImStr
[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 ImStr
[src]
fn cmp(&self, other: &ImStr) -> 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 PartialEq<ImStr> for ImStr
[src]
impl PartialOrd<ImStr> for ImStr
[src]
fn partial_cmp(&self, other: &ImStr) -> Option<Ordering>
[src]
fn lt(&self, other: &ImStr) -> bool
[src]
fn le(&self, other: &ImStr) -> bool
[src]
fn gt(&self, other: &ImStr) -> bool
[src]
fn ge(&self, other: &ImStr) -> bool
[src]
impl StructuralEq for ImStr
[src]
impl StructuralPartialEq for ImStr
[src]
impl ToOwned for ImStr
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImStr
impl Send for ImStr
impl Sync for ImStr
impl Unpin for ImStr
impl UnwindSafe for ImStr
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,