Struct imgui::ImStr [−][src]
#[repr(transparent)]pub struct ImStr(_);
Expand description
A UTF-8 encoded, implicitly nul-terminated string slice.
Implementations
Wraps a raw UTF-8 encoded C string
Safety
It is up to the caller to guarantee the pointer is not null and it points to a null-terminated UTF-8 string valid for the duration of the arbitrary lifetime ’a.
Converts a slice of bytes to an imgui-rs string slice without checking for valid UTF-8 or null termination.
Safety
It is up to the caller to guarantee the slice contains valid UTF-8 and a null terminator.
Converts a CStr reference to an imgui-rs string slice without checking for valid UTF-8.
Safety
It is up to the caller to guarantee the CStr reference contains valid UTF-8.
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