Struct graphicsmagick::MagickCString
source · #[repr(transparent)]pub struct MagickCString(_);
Implementations§
source§impl MagickCString
impl MagickCString
sourcepub fn as_c_str(&self) -> &CStr
pub fn as_c_str(&self) -> &CStr
Convert MagickCString
to CStr
.
sourcepub fn to_str_lossy(&self) -> Cow<'_, str>
pub fn to_str_lossy(&self) -> Cow<'_, str>
Convert MagickCString
to utf-8 string, including
non utf-8 characters.
If all characters are valid utf-8 character, then
Cow::Borrowed
is returned.
Otherwise, Cow::Owned
is returned where any invalid UTF-8 sequences
are replaced with std::char::REPLACEMENT_CHARACTER
,
which looks like this: “�”