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