#[non_exhaustive]pub enum ObjCType {
Show 25 variants
Void,
Bool,
Char,
UnsignedChar,
Short,
UnsignedShort,
Int,
UnsignedInt,
Long,
UnsignedLong,
LongLong,
UnsignedLongLong,
Float,
Double,
CharPtr,
Selector,
Class,
Object {
class_name: Option<String>,
protocols: Vec<String>,
is_block: bool,
},
CString,
Pointer(Box<ObjCQualifiedType>),
Array {
len: usize,
element: Box<ObjCQualifiedType>,
},
Struct {
name: String,
fields: Vec<ObjCQualifiedType>,
},
Union {
name: String,
fields: Vec<ObjCQualifiedType>,
},
BitField(usize),
Unknown(char),
}Expand description
The ObjCType type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Void
The Void variant.
Bool
The Bool variant.
Char
The Char variant.
UnsignedChar
The UnsignedChar variant.
Short
The Short variant.
UnsignedShort
The UnsignedShort variant.
Int
The Int variant.
UnsignedInt
The UnsignedInt variant.
Long
The Long variant.
UnsignedLong
The UnsignedLong variant.
LongLong
The LongLong variant.
UnsignedLongLong
The UnsignedLongLong variant.
Float
The Float variant.
Double
The Double variant.
CharPtr
The CharPtr variant.
Selector
The Selector variant.
Class
The Class variant.
Object
The Object variant.
Fields
CString
The CString variant.
Pointer(Box<ObjCQualifiedType>)
The Pointer variant.
Array
The Array variant.
Struct
The Struct variant.
Union
The Union variant.
BitField(usize)
The BitField variant.
Unknown(char)
The Unknown variant.
Trait Implementations§
impl Eq for ObjCType
impl StructuralPartialEq for ObjCType
Auto Trait Implementations§
impl Freeze for ObjCType
impl RefUnwindSafe for ObjCType
impl Send for ObjCType
impl Sync for ObjCType
impl Unpin for ObjCType
impl UnsafeUnpin for ObjCType
impl UnwindSafe for ObjCType
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