pub fn load_cdylib<'sdl>(&'sdl self, name: &str) -> Result<CDyLib<'sdl>, String> {
    let name_null: Vec<u8> = name.bytes().chain(Some(0)).collect();
    match NonNull::new(unsafe { SDL_LoadObject(name_null.as_ptr() as *const c_char) }) {
      Some(nn) => Ok(CDyLib {
        nn,
        _marker: PhantomData,
      }),
      None => Err(get_error()),
    }
  }
/// Attempts to load the named dynamic library into the program.
Attempts to load the named dynamic library into the program.
Attempts to load the named dynamic library into the program .
pub fn load_cdylib<'sdl>(&'sdl self, name: &str) -> Result<CDyLib<'sdl>, String> {
    let name_null: Vec<u8> = name.bytes().chain(Some(0)).collect();
    match NonNull::new(unsafe { SDL_LoadObject(name_null.as_ptr() as *const c_char) }) {
      Some(nn) => Ok(CDyLib {
        nn,
        _marker: PhantomData,
      }),
      None => Err(get_error()),
    }
  }
pub fn load_cdylib < ' sdl > ( & ' sdl self , name : & str ) -> Result < CDyLib < ' sdl > , String > { let name_null : Vec < u8 > = name . bytes ( ) . chain ( Some ( 0 ) ) . collect ( ) ; match NonNull :: new ( unsafe { SDL_LoadObject ( name_null . as_ptr ( ) as * const c_char ) } ) { Some ( nn ) => Ok ( CDyLib { nn , _marker : PhantomData , } ) , None => Err ( get_error ( ) ) , } }
Attempts to load the named dynamic library into the program.
Attempts to load the named dynamic library into the program .
&'sdl self
name
&str
&'sdl self
name
&str