pub trait GcStringExt: 'static {
    // Required methods
    fn max_length(&self) -> Result<i64, Error>;
    fn value(&self) -> Result<GString, Error>;
    fn set_value(&self, value: &str) -> Result<(), Error>;
}
Expand description

Required Methods§

source

fn max_length(&self) -> Result<i64, Error>

Returns

the maximum length self can store, excluding the NULL terminal character.

source

fn value(&self) -> Result<GString, Error>

<warning>``<para>Please note the string content is still owned by the self object, which means the returned pointer may not be still valid after a new call to this function.</para>``</warning>

Returns

the string value.

source

fn set_value(&self, value: &str) -> Result<(), Error>

Set value as the new self value.

value

new string value

Implementors§