pub struct Metadata<'a> { /* private fields */ }
Expand description
This structure is the main interface to inspect Objective-C metadata
It can be access using the function crate::macho::Binary::objc_metadata
Implementations§
§impl Metadata<'_>
impl Metadata<'_>
pub fn classes(&self) -> Classes<'_> ⓘ
pub fn classes(&self) -> Classes<'_> ⓘ
Return an iterator over the different Objective-C classes (@interface
)
pub fn protocols(&self) -> Protocols<'_> ⓘ
pub fn protocols(&self) -> Protocols<'_> ⓘ
Return an iterator over the Objective-C protocols declared in this binary (@protocol
).
pub fn class_by_name(&self, name: &str) -> Option<Class<'_>>
pub fn class_by_name(&self, name: &str) -> Option<Class<'_>>
Try to find the Objective-C class with the given mangled name
pub fn protocol_by_name(&self, name: &str) -> Option<Protocol<'_>>
pub fn protocol_by_name(&self, name: &str) -> Option<Protocol<'_>>
Try to find the Objective-C protocol with the given mangled name
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> !Send for Metadata<'a>
impl<'a> !Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'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