#[repr(transparent)]pub struct CGError(pub i32);Available on crate feature
CGError only.Expand description
Tuple Fields§
§0: i32Implementations§
Source§impl CGError
impl CGError
pub const Success: Self
pub const Failure: Self
pub const IllegalArgument: Self
pub const InvalidConnection: Self
pub const InvalidContext: Self
pub const CannotComplete: Self
pub const NotImplemented: Self
pub const RangeCheck: Self
pub const TypeCheck: Self
pub const InvalidOperation: Self
pub const NoneAvailable: Self
Source§impl CGError
impl CGError
Sourcepub unsafe fn set_callback(callback: CGErrorCallback)
pub unsafe fn set_callback(callback: CGErrorCallback)
§Safety
callback must be implemented correctly.
Trait Implementations§
Source§impl Ord for CGError
impl Ord for CGError
Source§impl PartialOrd for CGError
impl PartialOrd for CGError
Source§impl RefEncode for CGError
Available on crate feature objc2 only.
impl RefEncode for CGError
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CGError
impl Eq for CGError
impl StructuralPartialEq for CGError
Auto Trait Implementations§
impl Freeze for CGError
impl RefUnwindSafe for CGError
impl Send for CGError
impl Sync for CGError
impl Unpin for CGError
impl UnwindSafe for CGError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.