Use arrows to assign enum members.
This commit is contained in:
parent
c2e8b7c5b5
commit
70b31f1f3a
|
@ -4,21 +4,21 @@ use crate::gegl_enum;
|
|||
|
||||
gegl_enum!(
|
||||
FocusBlurShape,
|
||||
Circle: "circle",
|
||||
Square: "square",
|
||||
Diamond: "diamond",
|
||||
Horizontal: "horizontal",
|
||||
Vertical: "vertical",
|
||||
Circle => "circle",
|
||||
Square => "square",
|
||||
Diamond => "diamond",
|
||||
Horizontal => "horizontal",
|
||||
Vertical => "vertical",
|
||||
);
|
||||
|
||||
gegl_enum!(
|
||||
FocusBlurType,
|
||||
Gaussian: "gaussian",
|
||||
Lens: "lens",
|
||||
Gaussian => "gaussian",
|
||||
Lens => "lens",
|
||||
);
|
||||
|
||||
gegl_enum!(
|
||||
MazeAlgorithmType,
|
||||
DepthFirst: "depth-first",
|
||||
Prim: "prim",
|
||||
DepthFirst => "depth-first",
|
||||
Prim => "prim",
|
||||
);
|
||||
|
|
|
@ -49,7 +49,7 @@ macro_rules! gegl_operation {
|
|||
macro_rules! gegl_enum {
|
||||
(
|
||||
$enum_name:ident,
|
||||
$($key:ident: $value:expr),*,
|
||||
$($key:ident => $value:expr),*,
|
||||
) => {
|
||||
#[doc = "TODO: Generate documentation for [`gegl_enum!`]."]
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Reference in New Issue