Lines Matching defs:T
172 pub fn to_ptr<T>(self) -> *mut T {
393 pub type Result<T = (), E = Error> = core::result::Result<T, E>;
461 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> {
484 /// Calls a closure returning a [`crate::error::Result<T>`] and converts the result to
487 /// This is useful when calling Rust functions that return [`crate::error::Result<T>`]
490 /// `T` should be convertible from an `i16` via `From<i16>`.
507 pub fn from_result<T, F>(f: F) -> T
509 T: From<i16>,
510 F: FnOnce() -> Result<T>,
517 Err(e) => T::from(e.to_errno() as i16),