Struct Category
pub struct Category<'a> { /* private fields */ }Expand description
This class represents an Objective-C category (e.g.
@interface NSString (MyAdditions))
Implementations§
§impl Category<'_>
impl Category<'_>
pub fn class_name(&self) -> String
pub fn class_name(&self) -> String
(demangled) name of the class extended by this category
pub fn protocols(&self) -> Protocols<'_> ⓘ
pub fn protocols(&self) -> Protocols<'_> ⓘ
Iterator over the different Protocol adopted by this category
pub fn properties(&self) -> Properties<'_> ⓘ
pub fn properties(&self) -> Properties<'_> ⓘ
Iterator over the Property of this category
pub fn to_decl_with_opt(&self, opt: &DeclOpt) -> String
pub fn to_decl_with_opt(&self, opt: &DeclOpt) -> String
Same behavior as Category::to_decl but with an additional
DeclOpt parameter to customize the output
Auto Trait Implementations§
impl<'a> Freeze for Category<'a>
impl<'a> RefUnwindSafe for Category<'a>
impl<'a> !Send for Category<'a>
impl<'a> !Sync for Category<'a>
impl<'a> Unpin for Category<'a>
impl<'a> UnwindSafe for Category<'a>
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