var searchIndex = {}; searchIndex["objc"] = {"doc":"Objective-C Runtime bindings and wrapper for Rust.","items":[[3,"Id","objc","A pointer type for Objective-C's reference counted objects.",null,null],[3,"Encoding","","An Objective-C type encoding.",null,null],[3,"WeakId","","A pointer type for a weak reference to an Objective-C reference counted\nobject.",null,null],[4,"Owned","","A type used to mark that a struct owns the object(s) it contains,\nso it has the sole references to them.",null,null],[4,"Shared","","A type used to mark that the object(s) a struct contains are shared,\nso there may be other references to them.",null,null],[0,"runtime","","A Rust interface for the functionality of the Objective-C runtime.",null,null],[3,"Sel","objc::runtime","A type that represents a method selector.",null,null],[3,"Ivar","","A type that represents an instance variable.",null,null],[3,"Method","","A type that represents a method in a class definition.",null,null],[3,"Class","","A type that represents an Objective-C class.",null,null],[3,"Object","","A type that represents an instance of a class.",null,null],[3,"Super","","Specifies the superclass of an instance.",null,null],[12,"receiver","","Specifies an instance of a class.",0,null],[12,"superclass","","Specifies the particular superclass of the instance to message.",0,null],[5,"sel_registerName","","",null,null],[5,"sel_getName","","",null,null],[5,"class_getName","","",null,null],[5,"class_getSuperclass","","",null,null],[5,"class_getInstanceSize","","",null,null],[5,"class_getInstanceMethod","","",null,null],[5,"class_getInstanceVariable","","",null,null],[5,"class_copyMethodList","","",null,null],[5,"class_copyIvarList","","",null,null],[5,"class_addMethod","","",null,null],[5,"class_addIvar","","",null,null],[5,"objc_allocateClassPair","","",null,null],[5,"objc_disposeClassPair","","",null,null],[5,"objc_registerClassPair","","",null,null],[5,"object_getClass","","",null,null],[5,"objc_getClassList","","",null,null],[5,"objc_copyClassList","","",null,null],[5,"objc_getClass","","",null,null],[5,"ivar_getName","","",null,null],[5,"ivar_getOffset","","",null,null],[5,"ivar_getTypeEncoding","","",null,null],[5,"objc_msgSend","","",null,null],[5,"objc_msgSend_stret","","",null,null],[5,"objc_msgSendSuper","","",null,null],[5,"objc_msgSendSuper_stret","","",null,null],[5,"method_getName","","",null,null],[5,"method_getImplementation","","",null,null],[5,"method_copyReturnType","","",null,null],[5,"method_copyArgumentType","","",null,null],[5,"method_getNumberOfArguments","","",null,null],[5,"method_setImplementation","","",null,null],[5,"method_exchangeImplementations","","",null,null],[6,"BOOL","","The Objective-C `BOOL` type.",null,null],[6,"Imp","","A pointer to the start of a method implementation.",null,null],[17,"YES","","The equivalent of true for Objective-C's `BOOL` type.",null,null],[17,"NO","","The equivalent of false for Objective-C's `BOOL` type.",null,null],[11,"register","","Registers a method with the Objective-C runtime system,\nmaps the method name to a selector, and returns the selector value.",1,{"inputs":[{"name":"str"}],"output":{"name":"sel"}}],[11,"name","","Returns the name of the method specified by self.",1,null],[11,"eq","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"name","","Returns the name of self.",2,null],[11,"offset","","Returns the offset of self.",2,null],[11,"type_encoding","","Returns the `Encoding` of self.",2,null],[11,"name","","Returns the name of self.",3,null],[11,"return_type","","Returns the `Encoding` of self's return type.",3,null],[11,"argument_type","","Returns the `Encoding` of a single parameter type of self, or\n`None` if self has no parameter at the given index.",3,null],[11,"arguments_count","","Returns the number of arguments accepted by self.",3,null],[11,"implementation","","Returns the implementation of self.",3,null],[11,"set_implementation","","Sets the implementation of self.\nUnsafe because the caller must ensure the implementation has the\ncorrect self, return, and argument types for the method.",3,null],[11,"exchange_implementation","","Exchanges the implementations of self with another `Method`.\nUnsafe because the caller must ensure the two methods have the same\nself, return, and argument types.",3,null],[11,"get","","Returns the class definition of a specified class, or `None` if the\nclass is not registered with the Objective-C runtime.",4,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[11,"classes","","Obtains the list of registered class definitions.",4,{"inputs":[],"output":{"name":"mallocbuffer"}}],[11,"classes_count","","Returns the total number of registered classes.",4,{"inputs":[],"output":{"name":"usize"}}],[11,"name","","Returns the name of self.",4,null],[11,"superclass","","Returns the superclass of self, or `None` if self is a root class.",4,null],[11,"metaclass","","Returns the metaclass of self.",4,null],[11,"instance_size","","Returns the size of instances of self.",4,null],[11,"instance_method","","Returns a specified instance method for self, or `None` if self and\nits superclasses do not contain an instance method with the\nspecified selector.",4,null],[11,"instance_variable","","Returns the ivar for a specified instance variable of self, or `None`\nif self has no ivar with the given name.",4,null],[11,"instance_methods","","Describes the instance methods implemented by self.",4,null],[11,"instance_variables","","Describes the instance variables declared by self.",4,null],[11,"eq","","",4,null],[11,"fmt","","",4,null],[11,"class","","Returns the class of self.",5,null],[11,"get_ivar","","Returns a reference to the ivar of self with the given name.\nPanics if self has no ivar with the given name.\nUnsafe because the caller must ensure that the ivar is actually\nof type `T`.",5,null],[11,"get_mut_ivar","","Returns a mutable reference to the ivar of self with the given name.\nPanics if self has no ivar with the given name.\nUnsafe because the caller must ensure that the ivar is actually\nof type `T`.",5,null],[11,"set_ivar","","Sets the value of the ivar of self with the given name.\nPanics if self has no ivar with the given name.\nUnsafe because the caller must ensure that the ivar is actually\nof type `T`.",5,null],[11,"fmt","","",5,null],[11,"from_ptr","objc","Constructs an `Id` from a pointer to an unretained object and\nretains it. Panics if the pointer is null.\nUnsafe because the pointer must be to a valid object and\nthe caller must ensure the ownership is correct.",6,null],[11,"from_retained_ptr","","Constructs an `Id` from a pointer to a retained object; this won't\nretain the pointer, so the caller must ensure the object has a +1\nretain count. Panics if the pointer is null.\nUnsafe because the pointer must be to a valid object and\nthe caller must ensure the ownership is correct.",6,null],[11,"share","",""Downgrade" an owned `Id` to a `ShareId`, allowing it to be cloned.",6,null],[11,"clone","","",6,null],[11,"deref","","",6,null],[11,"deref_mut","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"hash","","",6,null],[11,"fmt","","",6,null],[11,"fmt","","",6,null],[0,"declare","","Functionality for declaring Objective-C classes.",null,null],[3,"UnequalArgsError","objc::declare","An error returned from `IntoMethodImp::into_imp` to indicate that a\nselector and function accept unequal numbers of arguments.",null,null],[3,"ClassDecl","","A type for declaring a new class and adding new methods and ivars to it\nbefore registering it.",null,null],[8,"IntoMethodImp","","Types that can be used as the implementation of an Objective-C method.",null,null],[16,"Callee","","The callee type of the method.",7,null],[16,"Ret","","The return type of the method.",7,null],[10,"argument_encodings","","Returns the type encodings of Self's arguments.",7,{"inputs":[],"output":{"name":"box"}}],[10,"into_imp","","Consumes self to create a method implementation for the given selector.",7,null],[11,"fmt","","",8,null],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"clone","","",8,null],[11,"fmt","","",8,null],[11,"description","","",8,null],[11,"new","","Constructs a `ClassDecl` with the given superclass and name.\nReturns `None` if the class couldn't be allocated.",9,{"inputs":[{"name":"class"},{"name":"str"}],"output":{"name":"option"}}],[11,"add_method","","Adds a method with the given name and implementation to self.\nPanics if the method wasn't sucessfully added\nor if the selector and function take different numbers of arguments.\nUnsafe because the caller must ensure that the types match those that\nare expected when the method is invoked from Objective-C.",9,null],[11,"add_class_method","","Adds a class method with the given name and implementation to self.\nPanics if the method wasn't sucessfully added\nor if the selector and function take different numbers of arguments.\nUnsafe because the caller must ensure that the types match those that\nare expected when the method is invoked from Objective-C.",9,null],[11,"add_ivar","","Adds an ivar with type `T` and the provided name to self.\nPanics if the ivar wasn't successfully added.",9,null],[11,"register","","Registers self, consuming it and returning a reference to the\nnewly registered `Class`.",9,null],[11,"drop","","",9,null],[11,"from_str","objc","Constructs an `Encoding` from its string representation.\nUnsafe because the caller must ensure the string is a valid encoding.",10,{"inputs":[{"name":"str"}],"output":{"name":"encoding"}}],[11,"as_str","","Returns self as a `str`.",10,null],[11,"clone","","",10,null],[11,"eq","","",10,null],[11,"fmt","","",10,null],[11,"encode","objc::runtime","",1,{"inputs":[],"output":{"name":"encoding"}}],[11,"new","objc","Construct a new `WeakId` referencing the given `ShareId`.",11,{"inputs":[{"name":"shareid"}],"output":{"name":"weakid"}}],[11,"load","","Load a `ShareId` from the `WeakId` if the object still exists.\nReturns `None` if the object has been deallocated.",11,null],[6,"ShareId","","A convenient alias for a shared `Id`.",null,null],[8,"Ownership","","A type that marks what type of ownership a struct has over the object(s)\nit contains; specifically, either `Owned` or `Shared`.",null,null],[8,"Encode","","Types that have an Objective-C type encoding.",null,null],[10,"encode","","Returns the Objective-C type encoding for Self.",12,{"inputs":[],"output":{"name":"encoding"}}],[8,"Message","","Types that may be sent Objective-C messages.\nFor example: objects, classes, and blocks.",null,null],[8,"MessageArguments","","Types that may be used as the arguments of an Objective-C message.",null,null],[10,"send","","Sends a message to the given obj with the given selector and self as\nthe arguments.",13,null],[10,"send_super","","Sends a message to the superclass of an instance of a class with self\nas the arguments.",13,null],[14,"sel!","","Registers a selector, returning a `Sel`.",null,null],[14,"msg_send!","","Sends a message to an object.",null,null]],"paths":[[3,"Super"],[3,"Sel"],[3,"Ivar"],[3,"Method"],[3,"Class"],[3,"Object"],[3,"Id"],[8,"IntoMethodImp"],[3,"UnequalArgsError"],[3,"ClassDecl"],[3,"Encoding"],[3,"WeakId"],[8,"Encode"],[8,"MessageArguments"]]}; initSearch(searchIndex);