Searched refs:get_ordinal (Results 1 – 2 of 2) sorted by relevance
35 let windows: Symbol<unsafe fn() -> *const i8> = lib.get_ordinal(1).expect("function"); in test_ordinal()45 let r: Result<Symbol<unsafe fn() -> *const i8>, _> = lib.get_ordinal(2); in test_ordinal_missing_fails()47 let r: Result<Symbol<unsafe fn() -> *const i8>, _> = lib.get_ordinal(!0); in test_ordinal_missing_fails()
243 pub unsafe fn get_ordinal<T>(&self, ordinal: WORD) -> Result<Symbol<T>, crate::Error> { in get_ordinal() method