Struct tesseract_swift::utils::error::CError
source · #[repr(C)]pub struct CError {
pub code: u32,
pub reason: CString,
}
Fields§
§code: u32
§reason: CString
Implementations§
Trait Implementations§
source§impl Error for CError
impl Error for CError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CError> for TesseractSwiftError
impl From<CError> for TesseractSwiftError
source§fn from(value: CError) -> TesseractSwiftError
fn from(value: CError) -> TesseractSwiftError
Converts to this type from the input type.
source§impl From<IntoStringError> for CError
impl From<IntoStringError> for CError
source§fn from(error: IntoStringError) -> CError
fn from(error: IntoStringError) -> CError
Converts to this type from the input type.
source§impl From<TesseractSwiftError> for CError
impl From<TesseractSwiftError> for CError
source§fn from(value: TesseractSwiftError) -> CError
fn from(value: TesseractSwiftError) -> CError
Converts to this type from the input type.
source§impl TryFrom<&CError> for SwiftError
impl TryFrom<&CError> for SwiftError
Auto Trait Implementations§
impl RefUnwindSafe for CError
impl Send for CError
impl Sync for CError
impl Unpin for CError
impl UnwindSafe for CError
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