// Maps a call onto the command buffer builder.
Maps a call onto the command buffer builder.
Maps a call onto the command buffer builder .
fn map_cb<F, E>(self, map: F) -> Result<Self, E>
    where
        F: FnOnce(AutoCommandBufferBuilder) -> Result<AutoCommandBufferBuilder, E>,
    {
        {
            let mut guard = self
                .frame
                .command_buffer_builder
                .lock()
                .expect("failed to lock `RawFrame`'s inner command buffer builder");
            let mut builder = guard
                .take()
                .expect("the `RawFrame`'s inner command buffer should always be `Some`");
            builder = map(builder)?;
            *guard = Some(builder);
        }
        Ok(self)
    }
fn map_cb < F , E > ( self , map : F ) -> Result < Self , E > where F : FnOnce ( AutoCommandBufferBuilder ) -> Result < AutoCommandBufferBuilder , E > , { { let mut guard = self . frame . command_buffer_builder . lock ( ) . expect ( " " ) ; let mut builder = guard . take ( ) . expect ( " " ) ; builder = map ( builder ) ? ; * guard = Some ( builder ) ; } Ok ( self ) }
Maps a call onto the command buffer builder.
Maps a call onto the command buffer builder .
self
map
F