var searchIndex = {}; searchIndex["cpython"] = {"doc":"Rust bindings to the Python interpreter.","items":[[6,"Py_ssize_t","cpython","",null,null],[3,"PyErr","","Represents a Python exception that was raised.",null,null],[12,"ptype","","The type of the exception. This should be either a `PyClass` or a `PyType`.",0,null],[12,"pvalue","","The value of the exception.",0,null],[12,"ptraceback","","The `PyTraceBack` object associated with the error.",0,null],[3,"PyObject","","Represents a reference to a Python object.",null,null],[3,"PyType","","Represents a reference to a Python type object.",null,null],[3,"PyModule","","Represents a Python module object.",null,null],[3,"PyBytes","","Represents a Python byte string.\nCorresponds to `str` in Python 2, and `bytes` in Python 3.",null,null],[3,"PyUnicode","","Represents a Python unicode string.\nCorresponds to `unicode` in Python 2, and `str` in Python 3.",null,null],[3,"PyString","","Represents a Python unicode string.\nCorresponds to `unicode` in Python 2, and `str` in Python 3.",null,null],[3,"PyIterator","","A python iterator object.",null,null],[3,"PyBool","","Represents a Python `bool`.",null,null],[3,"PyTuple","","Represents a Python tuple object.",null,null],[3,"NoArgs","","An empty struct that represents the empty argument list.\nCorresponds to the empty tuple `()` in Python.",null,null],[3,"PyDict","","Represents a Python `dict`.",null,null],[3,"PyList","","Represents a Python `list`.",null,null],[3,"PyInt","","In Python 2.x, represents a Python `long` object.\nIn Python 3.x, represents a Python `int` object.\nBoth `PyInt` and `PyLong` refer to the same type on Python 3.x.",null,null],[3,"PyLong","","In Python 2.x, represents a Python `long` object.\nIn Python 3.x, represents a Python `int` object.\nBoth `PyInt` and `PyLong` refer to the same type on Python 3.x.",null,null],[3,"PyFloat","","Represents a Python `float` object.",null,null],[3,"PySequence","","Represents a reference to a python object supporting the sequence protocol.",null,null],[3,"Python","","Marker type that indicates that the GIL is currently held.",null,null],[3,"GILGuard","","RAII type that represents the Global Interpreter Lock acquisition.",null,null],[3,"GILProtected","","Mutex-like wrapper object for data that is protected by the Python GIL.",null,null],[3,"PyRustType","","A Python class that contains rust values of type T.\nServes as a Python type object, and can be used to construct\n`PyRustObject<T>` instances.",null,null],[3,"PyRustObject","","A Python object that contains a rust value of type T,\nand is derived from base class B.\nNote that this type effectively acts like `Rc<T>`,\nexcept that the reference counting is done by the Python runtime.",null,null],[3,"PyRustTypeBuilder","","",null,null],[5,"prepare_freethreaded_python","","Prepares the use of Python in a free-threaded context.",null,{"inputs":[],"output":null}],[0,"exc","","This module contains the python exception types.",null,null],[3,"BaseException","cpython::exc","",null,null],[3,"Exception","","",null,null],[3,"LookupError","","",null,null],[3,"AssertionError","","",null,null],[3,"AttributeError","","",null,null],[3,"EOFError","","",null,null],[3,"EnvironmentError","","",null,null],[3,"FloatingPointError","","",null,null],[3,"IOError","","",null,null],[3,"ImportError","","",null,null],[3,"IndexError","","",null,null],[3,"KeyError","","",null,null],[3,"KeyboardInterrupt","","",null,null],[3,"MemoryError","","",null,null],[3,"NameError","","",null,null],[3,"NotImplementedError","","",null,null],[3,"OSError","","",null,null],[3,"OverflowError","","",null,null],[3,"ReferenceError","","",null,null],[3,"RuntimeError","","",null,null],[3,"SyntaxError","","",null,null],[3,"SystemError","","",null,null],[3,"SystemExit","","",null,null],[3,"TypeError","","",null,null],[3,"ValueError","","",null,null],[3,"ZeroDivisionError","","",null,null],[3,"UnicodeDecodeError","","",null,null],[3,"UnicodeEncodeError","","",null,null],[3,"UnicodeTranslateError","","",null,null],[11,"clone","cpython","",1,null],[11,"assume_gil_acquired","","Retrieve Python instance under the assumption that the GIL is already acquired at this point,\nand stays acquired for the lifetime `'p`.",1,{"inputs":[],"output":{"name":"python"}}],[11,"acquire_gil","","Acquires the global interpreter lock, which allows access to the Python runtime.",1,{"inputs":[],"output":{"name":"gilguard"}}],[11,"allow_threads","","Temporarily releases the GIL, thus allowing other Python threads to run.",1,null],[11,"eval","","Evaluates a Python expression in the given context and returns the result.",1,null],[11,"run","","Executes one or more Python statements in the given context.",1,null],[11,"None","","Gets the Python builtin value `None`.",1,null],[11,"True","","Gets the Python builtin value `True`.",1,null],[11,"False","","Gets the Python builtin value `False`.",1,null],[11,"get_type","","Gets the Python type object for type T.",1,null],[11,"import","","Import the Python module with the specified name.",1,null],[11,"fmt","","",0,null],[11,"occurred","","Gets whether an error is present in the Python interpreter's global state.",0,{"inputs":[{"name":"python"}],"output":{"name":"bool"}}],[11,"fetch","","Retrieves the current error from the Python interpreter's global state.\nThe error is cleared from the Python interpreter.\nIf no error is set, returns a `SystemError`.",0,{"inputs":[{"name":"python"}],"output":{"name":"pyerr"}}],[11,"new","","Creates a new PyErr of type `T`.",0,{"inputs":[{"name":"python"},{"name":"v"}],"output":{"name":"pyerr"}}],[11,"from_instance","","Creates a new PyErr.",0,{"inputs":[{"name":"python"},{"name":"o"}],"output":{"name":"pyerr"}}],[11,"new_lazy_init","","Construct a new error, with the usual lazy initialization of Python exceptions.\n`exc` is the exception type; usually one of the standard exceptions like `PyExc::runtime_error()`.\n`value` is the exception instance, or a tuple of arguments to pass to the exception constructor.",0,{"inputs":[{"name":"pytype"},{"name":"option"}],"output":{"name":"pyerr"}}],[11,"print","","Print a standard traceback to sys.stderr.",0,null],[11,"print_and_set_sys_last_vars","","Print a standard traceback to sys.stderr.",0,null],[11,"matches","","Return true if the current exception matches the exception in `exc`.\nIf `exc` is a class object, this also returns `true` when `self` is an instance of a subclass.\nIf `exc` is a tuple, all exceptions in the tuple (and recursively in subtuples) are searched for a match.",0,null],[11,"normalize","","Normalizes the error. This ensures that the exception value is an instance of the exception type.",0,null],[11,"get_type","","Retrieves the exception type.",0,null],[11,"instance","","Retrieves the exception instance for this error.\nThis method takes `&mut self` because the error might need\nto be normalized in order to create the exception instance.",0,null],[11,"restore","","Writes the error back to the Python interpreter's global state.\nThis is the opposite of `PyErr::fetch()`.",0,null],[11,"warn","","Issue a warning message.\nMay return a PyErr if warnings-as-errors is enabled.",0,{"inputs":[{"name":"python"},{"name":"pyobject"},{"name":"str"},{"name":"i32"}],"output":{"name":"pyresult"}}],[11,"from","","",0,{"inputs":[{"name":"pythonobjectdowncasterror"}],"output":{"name":"pyerr"}}],[11,"drop","","",2,null],[11,"to_py_object","","",2,null],[11,"into_py_object","","",2,null],[11,"with_borrowed_ptr","","",2,null],[11,"as_object","","",2,null],[11,"into_object","","",2,null],[11,"unchecked_downcast_from","","",2,{"inputs":[{"name":"pyobject"}],"output":{"name":"pyobject"}}],[11,"unchecked_downcast_borrow_from","","",2,{"inputs":[{"name":"pyobject"}],"output":{"name":"pyobject"}}],[11,"downcast_from","","",2,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",2,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",2,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"from_owned_ptr","","Creates a PyObject instance for the given FFI pointer.\nThis moves ownership over the pointer into the PyObject.\nUndefined behavior if the pointer is NULL or invalid.",2,null],[11,"from_borrowed_ptr","","Creates a PyObject instance for the given FFI pointer.\nCalls Py_INCREF() on the ptr.\nUndefined behavior if the pointer is NULL or invalid.",2,null],[11,"from_owned_ptr_opt","","Creates a PyObject instance for the given FFI pointer.\nThis moves ownership over the pointer into the PyObject.\nReturns None for null pointers; undefined behavior if the pointer is invalid.",2,null],[11,"from_borrowed_ptr_opt","","Returns None for null pointers; undefined behavior if the pointer is invalid.",2,null],[11,"as_ptr","","Gets the underlying FFI pointer.\nReturns a borrowed pointer.",2,null],[11,"steal_ptr","","Gets the underlying FFI pointer.\nConsumes `self` without calling `Py_DECREF()`, thus returning an owned pointer.",2,null],[11,"borrow_from_ptr","","Transmutes an FFI pointer to `&PyObject`.\nUndefined behavior if the pointer is NULL or invalid.",2,null],[11,"borrow_from_owned_ptr_slice","","Transmutes a slice of owned FFI pointers to `&[PyObject]`.\nUndefined behavior if any pointer in the slice is NULL or invalid.",2,null],[11,"get_refcnt","","Gets the reference count of this Python object.",2,null],[11,"get_type","","Gets the Python type object for this object's type.",2,null],[11,"unchecked_cast_into","","Casts the PyObject to a concrete Python object type.\nCauses undefined behavior if the object is not of the expected type.\nThis is a wrapper function around `PythonObject::unchecked_downcast_from()`.",2,null],[11,"cast_into","","Casts the PyObject to a concrete Python object type.\nFails with `PythonObjectDowncastError` if the object is not of the expected type.\nThis is a wrapper function around `PythonObjectWithCheckedDowncast::downcast_from()`.",2,null],[11,"unchecked_cast_as","","Casts the PyObject to a concrete Python object type.\nCauses undefined behavior if the object is not of the expected type.\nThis is a wrapper function around `PythonObject::unchecked_downcast_borrow_from()`.",2,null],[11,"cast_as","","Casts the PyObject to a concrete Python object type.\nFails with `PythonObjectDowncastError` if the object is not of the expected type.\nThis is a wrapper function around `PythonObjectWithCheckedDowncast::downcast_borrow_from()`.",2,null],[11,"extract","","Extracts some type from the Python object.\nThis is a wrapper function around `FromPyObject::from_py_object()`.",2,null],[11,"eq","","",2,null],[11,"to_py_object","","",3,null],[11,"into_py_object","","",3,null],[11,"with_borrowed_ptr","","",3,null],[11,"as_object","","",3,null],[11,"into_object","","",3,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",3,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",3,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",3,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",3,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",3,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"as_type_ptr","","Retrieves the underlying FFI pointer associated with this Python object.",3,null],[11,"from_type_ptr","","Retrieves the PyType instance for the given FFI pointer.\nThis increments the reference count on the type object.\nUndefined behavior if the pointer is NULL or invalid.",3,null],[11,"is_subtype_of","","Return true if `self` is a subtype of `b`.",3,null],[11,"is_instance","","Return true if `obj` is an instance of `self`.",3,null],[11,"call","","Calls the type object, thus creating a new instance.\nThis is equivalent to the Python expression: `self(*args, **kwargs)`",3,null],[11,"eq","","",3,null],[11,"to_py_object","","",4,null],[11,"into_py_object","","",4,null],[11,"with_borrowed_ptr","","",4,null],[11,"as_object","","",4,null],[11,"into_object","","",4,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",4,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",4,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",4,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",4,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",4,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","Create a new module object with the `__name__` attribute set to name.",4,{"inputs":[{"name":"python"},{"name":"str"}],"output":{"name":"pyresult"}}],[11,"import","","Import the Python module with the specified name.",4,{"inputs":[{"name":"python"},{"name":"str"}],"output":{"name":"pyresult"}}],[11,"dict","","Return the dictionary object that implements module's namespace;\nthis object is the same as the `__dict__` attribute of the module object.",4,null],[11,"name","","Gets the module name.",4,null],[11,"filename","","Gets the module filename.",4,null],[11,"get","","Gets a member from the module.\nThis is equivalent to the Python expression: `getattr(module, name)`",4,null],[11,"call","","Calls a function in the module.\nThis is equivalent to the Python expression: `getattr(module, name)(*args, **kwargs)`",4,null],[11,"add","","Adds a member to the module.",4,null],[11,"add_type","","Adds a new extension type to the module.",4,null],[11,"to_py_object","","",5,null],[11,"into_py_object","","",5,null],[11,"with_borrowed_ptr","","",5,null],[11,"as_object","","",5,null],[11,"into_object","","",5,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",5,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",5,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",5,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",5,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",5,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",6,null],[11,"into_py_object","","",6,null],[11,"with_borrowed_ptr","","",6,null],[11,"as_object","","",6,null],[11,"into_object","","",6,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",6,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",6,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",6,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",6,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",6,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","Creates a new Python byte string object.\nThe byte string is initialized by copying the data from the `&[u8]`.",5,null],[11,"as_slice","","Gets the Python string data as byte slice.",5,null],[11,"new","","Creates a new unicode string object from the Rust string.",6,{"inputs":[{"name":"python"},{"name":"str"}],"output":{"name":"pyunicode"}}],[11,"to_string","","Convert the `PyUnicode` into a rust string.",6,null],[11,"to_string_lossy","","Convert the `PyUnicode` into a rust string.",6,null],[11,"extract","","Extract a rust string from the Python object.",6,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"pyresult"}}],[11,"extract_lossy","","Extract a rust string from the Python object.",6,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"pyresult"}}],[11,"to_py_object","","",7,null],[11,"into_py_object","","",7,null],[11,"with_borrowed_ptr","","",7,null],[11,"as_object","","",7,null],[11,"into_object","","",7,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",7,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",7,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",7,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",7,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",7,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","Creates a new empty dictionary.",7,{"inputs":[{"name":"python"}],"output":{"name":"pydict"}}],[11,"copy","","Return a new dictionary that contains the same key-value pairs as self.\nCorresponds to `dict(self)` in Python.",7,null],[11,"clear","","Empty an existing dictionary of all key-value pairs.",7,null],[11,"len","","Return the number of items in the dictionary.\nThis is equivalent to len(p) on a dictionary.",7,null],[11,"contains","","Determine if the dictionary contains the specified key.\nThis is equivalent to the Python expression `key in self`.",7,null],[11,"get_item","","Gets an item from the dictionary.\nReturns None if the item is not present, or if an error occurs.",7,null],[11,"set_item","","Sets an item value.\nThis is equivalent to the Python expression `self[key] = value`.",7,null],[11,"del_item","","Deletes an item.\nThis is equivalent to the Python expression `del self[key]`.",7,null],[11,"items_list","","",7,null],[11,"items","","Returns the list of (key,value) pairs in this dictionary.",7,null],[11,"from_object","","Constructs a PyIterator from a Python iterator object.",8,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"as_object","","Gets the Python iterator object.",8,null],[11,"into_object","","Gets the Python iterator object.",8,null],[11,"next","","Retrieves the next item from an iterator.\nReturns `None` when the iterator is exhausted.\nIf an exception occurs, returns `Some(Err(..))`.\nFurther next() calls after an exception occurs are likely\nto repeatedly result in the same exception.",8,null],[11,"to_py_object","","",9,null],[11,"into_py_object","","",9,null],[11,"with_borrowed_ptr","","",9,null],[11,"as_object","","",9,null],[11,"into_object","","",9,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",9,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",9,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",9,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",9,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",9,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"get","","Depending on `val`, returns `py.True()` or `py.False()`.",9,{"inputs":[{"name":"python"},{"name":"bool"}],"output":{"name":"pybool"}}],[11,"is_true","","Gets whether this boolean is `true`.",9,null],[11,"to_py_object","","",10,null],[11,"into_py_object","","",10,null],[11,"with_borrowed_ptr","","",10,null],[11,"as_object","","",10,null],[11,"into_object","","",10,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",10,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",10,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",10,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",10,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",10,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","Construct a new tuple with the given elements.",10,null],[11,"empty","","Retrieves the empty tuple.",10,{"inputs":[{"name":"python"}],"output":{"name":"pytuple"}}],[11,"len","","Gets the length of the tuple.",10,null],[11,"get_item","","Gets the item at the specified index.",10,null],[11,"as_slice","","",10,null],[11,"iter","","",10,null],[11,"index","","",10,null],[11,"fmt","","",11,null],[11,"clone","","",11,null],[11,"to_py_object","","",11,null],[11,"prepare_extract","","",11,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"pyresult"}}],[11,"extract","","",11,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"pyresult"}}],[11,"to_py_object","","",12,null],[11,"into_py_object","","",12,null],[11,"with_borrowed_ptr","","",12,null],[11,"as_object","","",12,null],[11,"into_object","","",12,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",12,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",12,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",12,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",12,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",12,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","Construct a new list with the given elements.",12,null],[11,"len","","Gets the length of the list.",12,null],[11,"get_item","","Gets the item at the specified index.",12,null],[11,"set_item","","Sets the item at the specified index.",12,null],[11,"insert_item","","Inserts an item at the specified index.",12,null],[11,"iter","","",12,null],[11,"to_py_object","","",13,null],[11,"into_py_object","","",13,null],[11,"with_borrowed_ptr","","",13,null],[11,"as_object","","",13,null],[11,"into_object","","",13,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",13,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",13,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",13,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",13,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",13,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",14,null],[11,"into_py_object","","",14,null],[11,"with_borrowed_ptr","","",14,null],[11,"as_object","","",14,null],[11,"into_object","","",14,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",14,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",14,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",14,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",14,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",14,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","Creates a new Python `float` object.",14,{"inputs":[{"name":"python"},{"name":"c_double"}],"output":{"name":"pyfloat"}}],[11,"value","","Gets the value of this float.",14,null],[11,"to_py_object","","",15,null],[11,"into_py_object","","",15,null],[11,"with_borrowed_ptr","","",15,null],[11,"as_object","","",15,null],[11,"into_object","","",15,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",15,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",15,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",15,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",15,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"len","","Returns the number of objects in sequence. This is equivalent to Python `len()`.",15,null],[11,"concat","","Return the concatenation of o1 and o2. Equivalent to python `o1 + o2`",15,null],[11,"repeat","","Return the result of repeating sequence object o count times.\nEquivalent to python `o * count`\nNB: Python accepts negative counts; it returns an empty Sequence.",15,null],[11,"in_place_concat","","Return the concatenation of o1 and o2 on success. Equivalent to python `o1 += o2`",15,null],[11,"in_place_repeat","","Return the result of repeating sequence object o count times.\nEquivalent to python `o *= count`\nNB: Python accepts negative counts; it empties the Sequence.",15,null],[11,"get_item","","Return the ith element of the Sequence. Equivalent to python `o[index]`",15,null],[11,"get_slice","","Return the slice of sequence object o between begin and end.\nThis is the equivalent of the Python expression `o[begin:end]`",15,null],[11,"set_item","","Assign object v to the ith element of o.\nEquivalent to Python statement `o[i] = v`",15,null],[11,"del_item","","Delete the ith element of object o.\nPython statement `del o[i]`",15,null],[11,"set_slice","","Assign the sequence object v to the slice in sequence object o from i1 to i2.\nThis is the equivalent of the Python statement `o[i1:i2] = v`",15,null],[11,"del_slice","","Delete the slice in sequence object o from i1 to i2.\nequivalent of the Python statement `del o[i1:i2]`",15,null],[11,"count","","Return the number of occurrences of value in o, that is, return the number of keys for\nwhich `o[key] == value`",15,null],[11,"contains","","Determine if o contains value. this is equivalent to the Python expression `value in o`",15,null],[11,"index","","Return the first index i for which o[i] == value.\nThis is equivalent to the Python expression `o.index(value)`",15,null],[11,"list","","Return a fresh list based on the Sequence.",15,null],[11,"tuple","","Return a fresh tuple based on the Sequence.",15,null],[11,"iter","","",15,null],[11,"to_py_object","cpython::exc","",16,null],[11,"into_py_object","","",16,null],[11,"with_borrowed_ptr","","",16,null],[11,"as_object","","",16,null],[11,"into_object","","",16,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",16,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",16,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",16,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",16,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",16,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",17,null],[11,"into_py_object","","",17,null],[11,"with_borrowed_ptr","","",17,null],[11,"as_object","","",17,null],[11,"into_object","","",17,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",17,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",17,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",17,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",17,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",17,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",18,null],[11,"into_py_object","","",18,null],[11,"with_borrowed_ptr","","",18,null],[11,"as_object","","",18,null],[11,"into_object","","",18,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",18,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",18,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",18,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",18,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",18,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",19,null],[11,"into_py_object","","",19,null],[11,"with_borrowed_ptr","","",19,null],[11,"as_object","","",19,null],[11,"into_object","","",19,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",19,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",19,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",19,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",19,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",19,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",20,null],[11,"into_py_object","","",20,null],[11,"with_borrowed_ptr","","",20,null],[11,"as_object","","",20,null],[11,"into_object","","",20,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",20,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",20,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",20,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",20,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",20,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",21,null],[11,"into_py_object","","",21,null],[11,"with_borrowed_ptr","","",21,null],[11,"as_object","","",21,null],[11,"into_object","","",21,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",21,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",21,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",21,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",21,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",21,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",22,null],[11,"into_py_object","","",22,null],[11,"with_borrowed_ptr","","",22,null],[11,"as_object","","",22,null],[11,"into_object","","",22,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",22,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",22,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",22,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",22,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",22,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",23,null],[11,"into_py_object","","",23,null],[11,"with_borrowed_ptr","","",23,null],[11,"as_object","","",23,null],[11,"into_object","","",23,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",23,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",23,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",23,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",23,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",23,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",24,null],[11,"into_py_object","","",24,null],[11,"with_borrowed_ptr","","",24,null],[11,"as_object","","",24,null],[11,"into_object","","",24,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",24,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",24,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",24,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",24,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",24,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",25,null],[11,"into_py_object","","",25,null],[11,"with_borrowed_ptr","","",25,null],[11,"as_object","","",25,null],[11,"into_object","","",25,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",25,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",25,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",25,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",25,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",25,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",26,null],[11,"into_py_object","","",26,null],[11,"with_borrowed_ptr","","",26,null],[11,"as_object","","",26,null],[11,"into_object","","",26,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",26,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",26,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",26,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",26,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",26,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",27,null],[11,"into_py_object","","",27,null],[11,"with_borrowed_ptr","","",27,null],[11,"as_object","","",27,null],[11,"into_object","","",27,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",27,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",27,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",27,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",27,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",27,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",28,null],[11,"into_py_object","","",28,null],[11,"with_borrowed_ptr","","",28,null],[11,"as_object","","",28,null],[11,"into_object","","",28,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",28,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",28,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",28,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",28,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",28,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",29,null],[11,"into_py_object","","",29,null],[11,"with_borrowed_ptr","","",29,null],[11,"as_object","","",29,null],[11,"into_object","","",29,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",29,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",29,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",29,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",29,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",29,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",30,null],[11,"into_py_object","","",30,null],[11,"with_borrowed_ptr","","",30,null],[11,"as_object","","",30,null],[11,"into_object","","",30,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",30,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",30,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",30,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",30,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",30,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",31,null],[11,"into_py_object","","",31,null],[11,"with_borrowed_ptr","","",31,null],[11,"as_object","","",31,null],[11,"into_object","","",31,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",31,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",31,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",31,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",31,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",31,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",32,null],[11,"into_py_object","","",32,null],[11,"with_borrowed_ptr","","",32,null],[11,"as_object","","",32,null],[11,"into_object","","",32,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",32,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",32,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",32,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",32,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",32,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",33,null],[11,"into_py_object","","",33,null],[11,"with_borrowed_ptr","","",33,null],[11,"as_object","","",33,null],[11,"into_object","","",33,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",33,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",33,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",33,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",33,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",33,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",34,null],[11,"into_py_object","","",34,null],[11,"with_borrowed_ptr","","",34,null],[11,"as_object","","",34,null],[11,"into_object","","",34,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",34,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",34,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",34,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",34,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",34,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",35,null],[11,"into_py_object","","",35,null],[11,"with_borrowed_ptr","","",35,null],[11,"as_object","","",35,null],[11,"into_object","","",35,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",35,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",35,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",35,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",35,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",35,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",36,null],[11,"into_py_object","","",36,null],[11,"with_borrowed_ptr","","",36,null],[11,"as_object","","",36,null],[11,"into_object","","",36,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",36,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",36,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",36,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",36,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",36,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",37,null],[11,"into_py_object","","",37,null],[11,"with_borrowed_ptr","","",37,null],[11,"as_object","","",37,null],[11,"into_object","","",37,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",37,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",37,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",37,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",37,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",37,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",38,null],[11,"into_py_object","","",38,null],[11,"with_borrowed_ptr","","",38,null],[11,"as_object","","",38,null],[11,"into_object","","",38,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",38,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",38,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",38,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",38,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",38,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",39,null],[11,"into_py_object","","",39,null],[11,"with_borrowed_ptr","","",39,null],[11,"as_object","","",39,null],[11,"into_object","","",39,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",39,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",39,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",39,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",39,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",39,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",40,null],[11,"into_py_object","","",40,null],[11,"with_borrowed_ptr","","",40,null],[11,"as_object","","",40,null],[11,"into_object","","",40,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",40,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",40,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",40,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",40,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",40,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",41,null],[11,"into_py_object","","",41,null],[11,"with_borrowed_ptr","","",41,null],[11,"as_object","","",41,null],[11,"into_object","","",41,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",41,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",41,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",41,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",41,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",41,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",42,null],[11,"into_py_object","","",42,null],[11,"with_borrowed_ptr","","",42,null],[11,"as_object","","",42,null],[11,"into_object","","",42,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",42,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",42,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",42,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",42,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",42,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",43,null],[11,"into_py_object","","",43,null],[11,"with_borrowed_ptr","","",43,null],[11,"as_object","","",43,null],[11,"into_object","","",43,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",43,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",43,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",43,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",43,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",43,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"to_py_object","","",44,null],[11,"into_py_object","","",44,null],[11,"with_borrowed_ptr","","",44,null],[11,"as_object","","",44,null],[11,"into_object","","",44,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",44,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",44,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"downcast_from","","",44,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"downcast_borrow_from","","",44,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[11,"type_object","","",44,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[11,"new","","",42,null],[11,"new_utf8","","",42,null],[11,"fmt","cpython","",2,null],[11,"fmt","","",2,null],[11,"drop","","",45,null],[11,"acquire","","Acquires the global interpreter lock, which allows access to the Python runtime.",45,{"inputs":[],"output":{"name":"gilguard"}}],[11,"python","","Retrieves the marker type that proves that the GIL was acquired.",45,null],[11,"new","","Creates a new instance of `GILProtected`.",46,{"inputs":[{"name":"t"}],"output":{"name":"gilprotected"}}],[11,"get","","Returns a shared reference to the data stored in the `GILProtected`.",46,null],[11,"into_inner","","Consumes the `GILProtected`, returning the wrapped value.",46,null],[0,"argparse","","This module contains logic for parsing a python argument list.\nSee also the macros `py_argparse!`, `py_fn!` and `py_method!`.",null,null],[3,"ParamDescription","cpython::argparse","Description of a python parameter; used for `parse_args()`.",null,null],[12,"name","","The name of the parameter.",47,null],[12,"is_optional","","Whether the parameter is optional.",47,null],[5,"parse_args","","Parse argument list",null,null],[11,"new","cpython","Create a new type builder.",48,{"inputs":[{"name":"python"},{"name":"str"}],"output":{"name":"pyrusttypebuilder"}}],[11,"base","","Sets the base class that this type is inheriting from.",48,null],[11,"doc","","Set the doc string on the type being built.",48,null],[11,"add","","Adds a new member to the type.",48,null],[11,"set_new","","Sets the constructor (__new__ method)",48,null],[11,"finish","","Finalize construction of the new type.",48,null],[11,"as_base","","Gets a reference to this object, but of the base class type.",49,null],[11,"into_base","","Gets a reference to this object, but of the base class type.",49,null],[11,"get","","Gets a reference to the rust value stored in this Python object.",49,null],[11,"to_py_object","","",49,null],[11,"into_py_object","","",49,null],[11,"with_borrowed_ptr","","",49,null],[11,"as_object","","",49,null],[11,"into_object","","",49,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",49,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",49,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"create_instance","","Creates a PyRustObject instance from a value.",50,null],[11,"deref","","",50,null],[11,"to_py_object","","",50,null],[11,"into_py_object","","",50,null],[11,"with_borrowed_ptr","","",50,null],[11,"as_object","","",50,null],[11,"into_object","","",50,null],[11,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",50,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[11,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",50,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[6,"PyResult","","Represents the result of a Python call.",null,null],[6,"Py_hash_t","","",null,null],[8,"PythonObject","","Trait implemented by all Python object types.",null,null],[10,"as_object","","Casts the Python object to PyObject.",51,null],[10,"into_object","","Casts the Python object to PyObject.",51,null],[10,"unchecked_downcast_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",51,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[10,"unchecked_downcast_borrow_from","","Unchecked downcast from PyObject to Self.\nUndefined behavior if the input object does not have the expected type.",51,{"inputs":[{"name":"pyobject"}],"output":{"name":"self"}}],[8,"PythonObjectWithCheckedDowncast","","Trait implemented by Python object types that allow a checked downcast.",null,null],[10,"downcast_from","","Cast from PyObject to a concrete Python object type.",52,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[10,"downcast_borrow_from","","Cast from PyObject to a concrete Python object type.",52,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"result"}}],[8,"PythonObjectWithTypeObject","","Trait implemented by Python object types that have a corresponding type object.",null,null],[10,"type_object","","Retrieves the type object for this Python object type.",53,{"inputs":[{"name":"python"}],"output":{"name":"pytype"}}],[8,"PyClone","","",null,null],[10,"clone_ref","","",54,null],[8,"PyDrop","","",null,null],[10,"release_ref","","",55,null],[8,"ExtractPyObject","","FromPyObject is implemented by various types that can be extracted from a Python object.",null,null],[16,"Prepared","","",56,null],[10,"prepare_extract","","",56,{"inputs":[{"name":"python"},{"name":"pyobject"}],"output":{"name":"pyresult"}}],[10,"extract","","",56,{"inputs":[{"name":"python"},{"name":"prepared"}],"output":{"name":"pyresult"}}],[8,"ToPyObject","","Conversion trait that allows various objects to be converted into Python objects.",null,null],[16,"ObjectType","","",57,null],[10,"to_py_object","","Converts self into a Python object.",57,null],[11,"into_py_object","","Converts self into a Python object.",57,null],[11,"with_borrowed_ptr","","Converts self into a Python object and calls the specified closure\non the native FFI pointer underlying the Python object.",57,null],[8,"ObjectProtocol","","Trait that contains methods",null,null],[11,"hasattr","","Determines whether this object has the given attribute.\nThis is equivalent to the Python expression 'hasattr(self, attr_name)'.",58,null],[11,"getattr","","Retrieves an attribute value.\nThis is equivalent to the Python expression 'self.attr_name'.",58,null],[11,"setattr","","Sets an attribute value.\nThis is equivalent to the Python expression 'self.attr_name = value'.",58,null],[11,"delattr","","Deletes an attribute.\nThis is equivalent to the Python expression 'del self.attr_name'.",58,null],[11,"repr","","Compute the string representation of self.\nThis is equivalent to the Python expression 'repr(self)'.",58,null],[11,"str","","Compute the string representation of self.\nThis is equivalent to the Python expression 'str(self)'.",58,null],[11,"is_callable","","Determines whether this object is callable.",58,null],[11,"call","","Calls the object.\nThis is equivalent to the Python expression: 'self(*args, **kwargs)'",58,null],[11,"call_method","","Calls a method on the object.\nThis is equivalent to the Python expression: 'self.name(*args, **kwargs)'",58,null],[11,"hash","","Retrieves the hash code of the object.\nThis is equivalent to the Python expression: 'hash(self)'",58,null],[11,"is_true","","Returns whether the object is considered to be true.\nThis is equivalent to the Python expression: 'not not self'",58,null],[11,"len","","Returns the length of the sequence or mapping.\nThis is equivalent to the Python expression: 'len(self)'",58,null],[11,"get_item","","This is equivalent to the Python expression: 'self[key]'",58,null],[11,"set_item","","Sets an item value.\nThis is equivalent to the Python expression 'self[key] = value'.",58,null],[11,"del_item","","Deletes an item.\nThis is equivalent to the Python expression 'del self[key]'.",58,null],[11,"iter","","Takes an object and returns an iterator for it.\nThis is typically a new iterator but if the argument\nis an iterator, this returns itself.",58,null],[14,"py_argparse!","","This macro is used to parse a parameter list into a set of variables.",null,null],[14,"py_fn!","","Creates a Python callable object that invokes a Rust function.",null,null],[14,"py_method!","","Creates a Python instance method descriptor that invokes a Rust function.\nThere are two forms of this macro:\n1) py_method!(f)\n `f` is the name of a rust function with the signature\n `fn(Python, &SelfType, &PyTuple, Option<&PyDict>) -> PyResult<R>`\n for some `R` that implements `ToPyObject`.",null,null],[14,"py_class_method!","","Creates a Python class method descriptor that invokes a Rust function.",null,null],[14,"py_module_initializer!","","",null,null],[11,"into_py_object","","Converts self into a Python object.",57,null],[11,"with_borrowed_ptr","","Converts self into a Python object and calls the specified closure\non the native FFI pointer underlying the Python object.",57,null],[11,"hasattr","","Determines whether this object has the given attribute.\nThis is equivalent to the Python expression 'hasattr(self, attr_name)'.",58,null],[11,"getattr","","Retrieves an attribute value.\nThis is equivalent to the Python expression 'self.attr_name'.",58,null],[11,"setattr","","Sets an attribute value.\nThis is equivalent to the Python expression 'self.attr_name = value'.",58,null],[11,"delattr","","Deletes an attribute.\nThis is equivalent to the Python expression 'del self.attr_name'.",58,null],[11,"repr","","Compute the string representation of self.\nThis is equivalent to the Python expression 'repr(self)'.",58,null],[11,"str","","Compute the string representation of self.\nThis is equivalent to the Python expression 'str(self)'.",58,null],[11,"is_callable","","Determines whether this object is callable.",58,null],[11,"call","","Calls the object.\nThis is equivalent to the Python expression: 'self(*args, **kwargs)'",58,null],[11,"call_method","","Calls a method on the object.\nThis is equivalent to the Python expression: 'self.name(*args, **kwargs)'",58,null],[11,"hash","","Retrieves the hash code of the object.\nThis is equivalent to the Python expression: 'hash(self)'",58,null],[11,"is_true","","Returns whether the object is considered to be true.\nThis is equivalent to the Python expression: 'not not self'",58,null],[11,"len","","Returns the length of the sequence or mapping.\nThis is equivalent to the Python expression: 'len(self)'",58,null],[11,"get_item","","This is equivalent to the Python expression: 'self[key]'",58,null],[11,"set_item","","Sets an item value.\nThis is equivalent to the Python expression 'self[key] = value'.",58,null],[11,"del_item","","Deletes an item.\nThis is equivalent to the Python expression 'del self[key]'.",58,null],[11,"iter","","Takes an object and returns an iterator for it.\nThis is typically a new iterator but if the argument\nis an iterator, this returns itself.",58,null]],"paths":[[3,"PyErr"],[3,"Python"],[3,"PyObject"],[3,"PyType"],[3,"PyModule"],[3,"PyBytes"],[3,"PyUnicode"],[3,"PyDict"],[3,"PyIterator"],[3,"PyBool"],[3,"PyTuple"],[3,"NoArgs"],[3,"PyList"],[3,"PyInt"],[3,"PyFloat"],[3,"PySequence"],[3,"BaseException"],[3,"Exception"],[3,"LookupError"],[3,"AssertionError"],[3,"AttributeError"],[3,"EOFError"],[3,"EnvironmentError"],[3,"FloatingPointError"],[3,"IOError"],[3,"ImportError"],[3,"IndexError"],[3,"KeyError"],[3,"KeyboardInterrupt"],[3,"MemoryError"],[3,"NameError"],[3,"NotImplementedError"],[3,"OSError"],[3,"OverflowError"],[3,"ReferenceError"],[3,"RuntimeError"],[3,"SyntaxError"],[3,"SystemError"],[3,"SystemExit"],[3,"TypeError"],[3,"ValueError"],[3,"ZeroDivisionError"],[3,"UnicodeDecodeError"],[3,"UnicodeEncodeError"],[3,"UnicodeTranslateError"],[3,"GILGuard"],[3,"GILProtected"],[3,"ParamDescription"],[3,"PyRustTypeBuilder"],[3,"PyRustObject"],[3,"PyRustType"],[8,"PythonObject"],[8,"PythonObjectWithCheckedDowncast"],[8,"PythonObjectWithTypeObject"],[8,"PyClone"],[8,"PyDrop"],[8,"ExtractPyObject"],[8,"ToPyObject"],[8,"ObjectProtocol"]]}; initSearch(searchIndex);