Struct glib::EnumClass [] [src]

pub struct EnumClass(_);
[]

Representation of an enum for dynamically, at runtime, querying the values of the enum and using them.

Methods

impl EnumClass
[src]

[src]
[]

Create a new EnumClass from a Type.

Returns None if type_ is not representing an enum.

[src]
[]

Type of the enum.

[src]
[]

Gets EnumValue by integer value, if existing.

Returns None if the enum does not contain any value with value.

[src]
[]

Gets EnumValue by string name name, if existing.

Returns None if the enum does not contain any value with name name.

[src]
[]

Gets EnumValue by string nick nick, if existing.

Returns None if the enum does not contain any value with nick nick.

[src]
[]

Gets all EnumValue of this EnumClass.

[src]
[]

Converts integer value to a Value, if part of the enum.

[src]
[]

Converts string name name to a Value, if part of the enum.

[src]
[]

Converts string nick nick to a Value, if part of the enum.

Trait Implementations

impl Debug for EnumClass
[src]

[src]
[]

Formats the value using the given formatter. Read more

impl Drop for EnumClass
[src]

[src]
[]

Executes the destructor for this type. Read more

impl Clone for EnumClass
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more