Home
last modified time | relevance | path

Searched refs:get_ordinal (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/libloading/tests/
Dwindows.rs35 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()
/external/rust/crates/libloading/src/os/windows/
Dmod.rs243 pub unsafe fn get_ordinal<T>(&self, ordinal: WORD) -> Result<Symbol<T>, crate::Error> { in get_ordinal() method