pub fn enabled_extensions<'een, 's>(&'s mut self, enabled_extensions: &'een [vks::VkExtensionProperties])
            -> &'s mut InstanceBuilder<'ib>
            where 'een: 'ib {
        if self.create_info.enabled_extension_names().len() != 0 {
            panic!("Enabled extension names have already been set.");
        }
        let enabled_extension_name_ptrs: Vec<_> = enabled_extensions.iter().map(|eext| {
            if PRINT { println!("Enabling instance extension: '{}' (version: {})",
                unsafe { CStr::from_ptr(&eext.extensionName as *const c_char).to_str().unwrap() },
                    eext.specVersion); }
            eext.extensionName.as_ptr()
        }).collect();

        self.enabled_extension_names = Some(CharStrs::OwnedPtr { ptrs: enabled_extension_name_ptrs });
        if let Some(ref eens) = self.enabled_extension_names {
            self.create_info.set_enabled_extension_names(eens.as_ptr_slice());
        }
        self
    }
/// Sets the enabled extension names by providing a list of extensions.
///
/// May not be used with `::enabled_extension_lists`.
Sets the enabled extension names by providing a list of extensions.
May not be used with `::enabled_extension_lists`.
Sets the enabled extension names by providing a list of extensions . May not be used with ` :: enabled_extension_lists ` .
pub fn enabled_extensions<'een, 's>(&'s mut self, enabled_extensions: &'een [vks::VkExtensionProperties])
            -> &'s mut InstanceBuilder<'ib>
            where 'een: 'ib {
        if self.create_info.enabled_extension_names().len() != 0 {
            panic!("Enabled extension names have already been set.");
        }
        let enabled_extension_name_ptrs: Vec<_> = enabled_extensions.iter().map(|eext| {
            if PRINT { println!("Enabling instance extension: '{}' (version: {})",
                unsafe { CStr::from_ptr(&eext.extensionName as *const c_char).to_str().unwrap() },
                    eext.specVersion); }
            eext.extensionName.as_ptr()
        }).collect();
        self.enabled_extension_names = Some(CharStrs::OwnedPtr { ptrs: enabled_extension_name_ptrs });
        if let Some(ref eens) = self.enabled_extension_names {
            self.create_info.set_enabled_extension_names(eens.as_ptr_slice());
        }
        self
    }
pub fn enabled_extensions < ' een , ' s > ( & ' s mut self , enabled_extensions : & ' een [ vks :: VkExtensionProperties ] ) -> & ' s mut InstanceBuilder < ' ib > where ' een : ' ib { if self . create_info . enabled_extension_names ( ) . len ( ) != 0 { panic ! ( " " ) ; } let enabled_extension_name_ptrs : Vec < _ > = enabled_extensions . iter ( ) . map ( | eext | { if PRINT { println ! ( " " unsafe { CStr from_ptr ( eext extensionName as const c_char ) to_str ( ) unwrap ( ) } eext specVersion ) ; } eext . extensionName . as_ptr ( ) } ) . collect ( ) ; self . enabled_extension_names = Some ( CharStrs :: OwnedPtr { ptrs : enabled_extension_name_ptrs } ) ; if let Some ( ref eens ) = self . enabled_extension_names { self . create_info . set_enabled_extension_names ( eens . as_ptr_slice ( ) ) ; } self }
Sets the enabled extension names by providing a list of extensions.
Sets the enabled extension names by providing a list of extensions .
&'s mut self
enabled_extensions
&'een [vks::VkExtensionProperties]
&'s mut self
enabled_extensions
&'een [vks::VkExtensionProperties]