#[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)>
Returns 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 Freeze for CError
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