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]

Create a new EnumClass from a Type.

Returns None if type_ is not representing an enum.

Type of the enum.

Gets EnumValue by integer value, if existing.

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

Gets EnumValue by string name name, if existing.

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

Gets EnumValue by string nick nick, if existing.

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

Important traits for Vec<u8>

Gets all EnumValue of this EnumClass.

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

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

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

Trait Implementations

impl Debug for EnumClass
[src]

Formats the value using the given formatter. Read more

impl Drop for EnumClass
[src]

Executes the destructor for this type. Read more

impl Clone for EnumClass
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for EnumClass

impl !Sync for EnumClass