Skip to content

Commit 914526f

Browse files
committed
Link to Properties macro section on usage with Enum derived enums
1 parent f21daf7 commit 914526f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

glib-macros/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ pub fn closure_local(item: TokenStream) -> TokenStream {
525525
/// }
526526
/// ```
527527
///
528+
/// When using the [`Properties`] macro with enums that derive [`Enum`], the default value must be
529+
/// explicitly set via the `builder` parameter of the `#[property]` attribute. See
530+
/// [here](Properties#supported-types) for details.
531+
///
528532
/// An enum can be registered as a dynamic type by setting the derive macro
529533
/// helper attribute `enum_dynamic`:
530534
///

0 commit comments

Comments
 (0)