pub trait TreeModelExtManual:
Sealed
+ IsA<TreeModel>
+ 'static {
// Provided methods
fn get_value(&self, iter: &TreeIter, column: i32) -> Value { ... }
fn get<V: for<'b> FromValue<'b> + 'static>(
&self,
iter: &TreeIter,
column: i32,
) -> V { ... }
}
Expand description
Trait containing manually implemented methods of
TreeModel
.
Provided Methods§
fn get_value(&self, iter: &TreeIter, column: i32) -> Value
Sourcefn get<V: for<'b> FromValue<'b> + 'static>(
&self,
iter: &TreeIter,
column: i32,
) -> V
👎Deprecated: Since 4.10
fn get<V: for<'b> FromValue<'b> + 'static>( &self, iter: &TreeIter, column: i32, ) -> V
Similar to Self::get_value
but panics if the value is of a different
type.
Gets the value of one or more cells in the row referenced by @iter.
The variable argument list should contain integer column numbers,
each column number followed by a place to store the value being
retrieved. The list is terminated by a -1. For example, to get a
value from column 0 with type G_TYPE_STRING
, you would
write: gtk_tree_model_get (model, iter, 0, &place_string_here, -1)
,
where place_string_here
is a #gchararray
to be filled with the string.
Returned values with type G_TYPE_OBJECT
have to be unreferenced,
values with type G_TYPE_STRING
or G_TYPE_BOXED
have to be freed.
Other values are passed by value.
§Deprecated since 4.10
§iter
a row in @self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.