Struct imgui::ImStr
[−]
[src]
pub struct ImStr(_);
Methods
impl ImStr
[src]
fn new<S: AsRef<ImStr> + ?Sized>(s: &S) -> &ImStr
[src]
unsafe fn from_utf8_with_nul_unchecked(bytes: &[u8]) -> &ImStr
[src]
fn as_ptr(&self) -> *const c_char
[src]
fn to_str(&self) -> &str
[src]
Trait Implementations
impl Hash for ImStr
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ImStr
[src]
fn eq(&self, __arg_0: &ImStr) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImStr) -> bool
[src]
This method tests for !=
.
impl Eq for ImStr
[src]
impl PartialOrd for ImStr
[src]
fn partial_cmp(&self, __arg_0: &ImStr) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ImStr) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ImStr) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ImStr) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ImStr) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ImStr
[src]
fn cmp(&self, __arg_0: &ImStr) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<'a> Default for &'a ImStr
[src]
impl Debug for ImStr
[src]
impl AsRef<CStr> for ImStr
[src]
impl AsRef<ImStr> for ImStr
[src]
impl AsRef<str> for ImStr
[src]
impl ToOwned for ImStr
[src]
type Owned = ImString
fn to_owned(&self) -> ImString
[src]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more