I’m trying to work with Glib API where it possible, but can’t find alternative for push
method in Rust. For example, String
class has it, but GString
- nope
String::push_str(substring)
I’m trying to work with Glib API where it possible, but can’t find alternative for push
method in Rust. For example, String
class has it, but GString
- nope
String::push_str(substring)
glib::GString
is immutable, unlike String
. Use glib::GStringBuilder
to construct one in a similar way to push_str()
etc.
Note that this also implements the Write
trait.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.