Struct imgui::ImString [−][src]
pub struct ImString(_);
Expand description
A UTF-8 encoded, growable, implicitly nul-terminated string.
Implementations
Creates a new ImString
from an existing string.
Creates a new empty ImString
with a particular capacity
Converts a vector of bytes to a ImString
without checking that the string contains valid
UTF-8
Safety
It is up to the caller to guarantee the vector contains valid UTF-8 and no null terminator.
Converts a vector of bytes to a ImString
without checking that the string contains valid
UTF-8
Safety
It is up to the caller to guarantee the vector contains valid UTF-8 and a null terminator.
Appends a given string slice to the end of this ImString
Returns the capacity of this ImString
in bytes, including the implicit null byte
Ensures that the capacity of this ImString
is at least additional
bytes larger than the
current length.
The capacity may be increased by more than additional
bytes.
Ensures that the capacity of this ImString
is at least additional
bytes larger than the
current length
Returns a raw mutable pointer to the underlying buffer.
If the underlying data is modified, refresh_len
must be called afterwards.
Updates the underlying buffer length based on the current contents.
This function must be called if the underlying data is modified via a pointer
obtained by as_mut_ptr
.
Safety
It is up to the caller to guarantee the this ImString contains valid UTF-8 and a null terminator.
Methods from Deref<Target = ImStr>
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Writes a string slice into this writer, returning whether the write succeeded. Read more
Auto Trait Implementations
impl RefUnwindSafe for ImString
impl UnwindSafe for ImString
Blanket Implementations
Mutably borrows from an owned value. Read more