Skip to main content

Crate geop_ops_derive

Crate geop_ops_derive 

Source
Expand description

#[derive(Operations)]: a set of geop_ops operations as one enum.

On an enum whose every variant is Name(NameArgs), with Name a unit struct implementing geop_ops::Operation with Args = NameArgs, it implements geop_ops::Operations — dispatching every method to Name — and From<NameArgs> for the enum. A variant’s doc comment describes the operation, and #[operation(label = "...")] gives its short name if that is not the variant’s.

Derive Macros§

Operations
impl Operations and the conversions for the enum of a set of operations.