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!(
|
gegl_enum!(
|
||||||
FocusBlurShape,
|
FocusBlurShape,
|
||||||
Circle: "circle",
|
Circle => "circle",
|
||||||
Square: "square",
|
Square => "square",
|
||||||
Diamond: "diamond",
|
Diamond => "diamond",
|
||||||
Horizontal: "horizontal",
|
Horizontal => "horizontal",
|
||||||
Vertical: "vertical",
|
Vertical => "vertical",
|
||||||
);
|
);
|
||||||
|
|
||||||
gegl_enum!(
|
gegl_enum!(
|
||||||
FocusBlurType,
|
FocusBlurType,
|
||||||
Gaussian: "gaussian",
|
Gaussian => "gaussian",
|
||||||
Lens: "lens",
|
Lens => "lens",
|
||||||
);
|
);
|
||||||
|
|
||||||
gegl_enum!(
|
gegl_enum!(
|
||||||
MazeAlgorithmType,
|
MazeAlgorithmType,
|
||||||
DepthFirst: "depth-first",
|
DepthFirst => "depth-first",
|
||||||
Prim: "prim",
|
Prim => "prim",
|
||||||
);
|
);
|
||||||
|
|
|
@ -49,7 +49,7 @@ macro_rules! gegl_operation {
|
||||||
macro_rules! gegl_enum {
|
macro_rules! gegl_enum {
|
||||||
(
|
(
|
||||||
$enum_name:ident,
|
$enum_name:ident,
|
||||||
$($key:ident: $value:expr),*,
|
$($key:ident => $value:expr),*,
|
||||||
) => {
|
) => {
|
||||||
#[doc = "TODO: Generate documentation for [`gegl_enum!`]."]
|
#[doc = "TODO: Generate documentation for [`gegl_enum!`]."]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
Loading…
Reference in New Issue