Struct glib::EnumClass [−][src]
pub struct EnumClass(_);
Expand description
Representation of an enum
for dynamically, at runtime, querying the values of the enum and
using them.
Implementations
Create a new EnumClass
from a Type
.
Returns None
if type_
is not representing an 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
.
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
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more