pub fn bind(self, _guard: &mut VtfGuard) -> BoundVtfFile<'a, '_> {
        unsafe {
            assert_eq!(
                ffi::vlBindImage(self.handle),
                ffi::vlTrue,
                "image binding failed"
            );
        }
        BoundVtfFile {
            marker: PhantomData,
            vtf_file: self,
        }
    }
/// Bind the VTF file to work on it. Only one VTF file can be bound at a time.
/// This is a limitation of the underlying library's C API.
/// Mutably borrows the [`VtfGuard`] obtained from library initialization to enforce this.
///
/// # Panics
///
/// Panics if the binding fails. This should not happen.
Bind the VTF file to work on it. Only one VTF file can be bound at a time.
This is a limitation of the underlying library's C API.
Mutably borrows the [`VtfGuard`] obtained from library initialization to enforce this.
Bind the VTF file to work on it . Only one VTF file can be bound at a time . This is a limitation of the underlying library ' s C API . Mutably borrows the [ ` VtfGuard ` ] obtained from library initialization to enforce this .
pub fn bind(self, _guard: &mut VtfGuard) -> BoundVtfFile<'a, '_> {
        unsafe {
            assert_eq!(
                ffi::vlBindImage(self.handle),
                ffi::vlTrue,
                "image binding failed"
            );
        }
        BoundVtfFile {
            marker: PhantomData,
            vtf_file: self,
        }
    }
pub fn bind ( self , _guard : & mut VtfGuard ) -> BoundVtfFile < ' a , ' _ > { unsafe { assert_eq ! ( ffi vlBindImage ( self handle ) ffi vlTrue " " ) ; } BoundVtfFile { marker : PhantomData , vtf_file : self , } }
Bind the VTF file to work on it.
Bind the VTF file to work on it .
self
_guard
&mut VtfGuard
self
_guard
&mut VtfGuard
panics
Panics if the binding fails. This should not happen.
Panics if the binding fails . This should not happen .