From 90538a05c0380d8678b343602f332c768eac3a92 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Wed, 20 Mar 2019 10:45:17 +0100 Subject: [PATCH] Add docs to the build method --- generator/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 63d6c7a..51e8d25 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -1695,6 +1695,9 @@ pub fn derive_setters( #next_function + /// Calling build will **discard** all the lifetime information. Only call this if + /// necessary! Builders implement `Deref` targeting their corresponding Vulkan struct, + /// so references to builders can be passed directly to Vulkan functions. pub fn build(self) -> #name { self.inner }