We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nullable
1 parent 3428b99 commit 53f3f38Copy full SHA for 53f3f38
glib-macros/src/lib.rs
@@ -872,7 +872,8 @@ pub fn cstr_bytes(item: TokenStream) -> TokenStream {
872
/// `PropertySet` and `PropertySetNested` if possible.
873
///
874
/// The type `Option<T>` is supported as a property only if `Option<T>` implements `ToValueOptional`.
875
-/// Optional types also require the `nullable` attribute.
+/// Optional types also require the `nullable` attribute: without it, the generated setter on the wrapper type
876
+/// will take `T` instead of `Option<T>`, preventing the user from ever calling the setter with a `None` value.
877
/// If your type doesn't support `PropertySet`, you can't use the generated setter, but you can
878
/// always define a custom one.
879
0 commit comments