Trait WidgetType

Source
pub trait WidgetType {
    // Required methods
    fn to_i32(self) -> i32;
    fn from_i32(val: i32) -> Self;
}
Expand description

A trait defined for all enums passable to the WidgetExt::set_type() method

Required Methods§

Source

fn to_i32(self) -> i32

Get the integral representation of the widget type

Source

fn from_i32(val: i32) -> Self

Get the widget type from its integral representation

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.

Implementors§