pub struct OrtStatusWrapper(/* private fields */);
Expand description
Wrapper type around a ONNX C API’s OrtStatus
pointer
This wrapper exists to facilitate conversion from C raw pointers to Rust error types
Trait Implementations§
Source§impl From<OrtStatusWrapper> for Result<(), OrtApiError>
impl From<OrtStatusWrapper> for Result<(), OrtApiError>
Source§fn from(status: OrtStatusWrapper) -> Self
fn from(status: OrtStatusWrapper) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OrtStatusWrapper
impl RefUnwindSafe for OrtStatusWrapper
impl !Send for OrtStatusWrapper
impl !Sync for OrtStatusWrapper
impl Unpin for OrtStatusWrapper
impl UnwindSafe for OrtStatusWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more