pub struct PyContext { pub true_value:PyIntRef, pub false_value:PyIntRef, pub none:PyNoneRef, pub empty_tuple:PyTupleRef, pub ellipsis_type:PyClassRef, pub ellipsis:PyEllipsisRef, pub not_implemented:PyNotImplementedRef, pub types:TypeZoo, pub exceptions:ExceptionZoo, pub int_cache_pool:Vec<PyObjectRef>,}
true_value:PyIntRef
false_value:PyIntRef
none:PyNoneRef
empty_tuple:PyTupleRef
ellipsis_type:PyClassRef
ellipsis:PyEllipsisRef
not_implemented:PyNotImplementedRef
types:TypeZoo
exceptions:ExceptionZoo
int_cache_pool:Vec<PyObjectRef>
implPyContext
[src]pub fnnew() -> Self
[src]pub fnbytearray_type(&self) ->PyClassRef
[src]pub fnbytearrayiterator_type(&self) ->PyClassRef
[src]pub fnbytes_type(&self) ->PyClassRef
[src]pub fnbytesiterator_type(&self) ->PyClassRef
[src]pub fncode_type(&self) ->PyClassRef
[src]pub fncomplex_type(&self) ->PyClassRef
[src]pub fndict_type(&self) ->PyClassRef
[src]pub fnfloat_type(&self) ->PyClassRef
[src]pub fnframe_type(&self) ->PyClassRef
[src]pub fnint_type(&self) ->PyClassRef
[src]pub fnlist_type(&self) ->PyClassRef
[src]pub fnlistiterator_type(&self) ->PyClassRef
[src]pub fnlistreverseiterator_type(&self) ->PyClassRef
[src]pub fnstriterator_type(&self) ->PyClassRef
[src]pub fnstrreverseiterator_type(&self) ->PyClassRef
[src]pub fnmodule_type(&self) ->PyClassRef
[src]pub fnnamespace_type(&self) ->PyClassRef
[src]pub fnset_type(&self) ->PyClassRef
[src]pub fnrange_type(&self) ->PyClassRef
[src]pub fnrangeiterator_type(&self) ->PyClassRef
[src]pub fnslice_type(&self) ->PyClassRef
[src]pub fnfrozenset_type(&self) ->PyClassRef
[src]pub fnbool_type(&self) ->PyClassRef
[src]pub fnmemoryview_type(&self) ->PyClassRef
[src]pub fntuple_type(&self) ->PyClassRef
[src]pub fntupleiterator_type(&self) ->PyClassRef
[src]pub fniter_type(&self) ->PyClassRef
[src]pub fnenumerate_type(&self) ->PyClassRef
[src]pub fnfilter_type(&self) ->PyClassRef
[src]pub fnmap_type(&self) ->PyClassRef
[src]pub fnzip_type(&self) ->PyClassRef
[src]pub fnstr_type(&self) ->PyClassRef
[src]pub fnsuper_type(&self) ->PyClassRef
[src]pub fnfunction_type(&self) ->PyClassRef
[src]pub fnbuiltin_function_or_method_type(&self) ->PyClassRef
[src]pub fnmethod_descriptor_type(&self) ->PyClassRef
[src]pub fnproperty_type(&self) ->PyClassRef
[src]pub fnreadonly_property_type(&self) ->PyClassRef
[src]pub fngetset_type(&self) ->PyClassRef
[src]pub fnclassmethod_type(&self) ->PyClassRef
[src]pub fnstaticmethod_type(&self) ->PyClassRef
[src]pub fngenerator_type(&self) ->PyClassRef
[src]pub fnbound_method_type(&self) ->PyClassRef
[src]pub fnweakref_type(&self) ->PyClassRef
[src]pub fnweakproxy_type(&self) ->PyClassRef
[src]pub fntraceback_type(&self) ->PyClassRef
[src]pub fntype_type(&self) ->PyClassRef
[src]pub fnnone(&self) ->PyObjectRef
[src]pub fnellipsis(&self) ->PyObjectRef
[src]pub fnnot_implemented(&self) ->PyObjectRef
[src]pub fnobject(&self) ->PyClassRef
[src]pub fnnew_int<T: Into<BigInt> +ToPrimitive>(&self, i: T) ->PyObjectRef
[src]pub fnnew_bigint(&self, i: &BigInt) ->PyObjectRef
[src]pub fnnew_float(&self, value:f64) ->PyObjectRef
[src]pub fnnew_complex(&self, value:Complex64) ->PyObjectRef
[src]pub fnnew_str(&self, s:String) ->PyObjectRef
[src]pub fnnew_bytes(&self, data:Vec<u8>) ->PyObjectRef
[src]pub fnnew_bytearray(&self, data:Vec<u8>) ->PyObjectRef
[src]pub fnnew_bool(&self, b:bool) ->PyObjectRef
[src]pub fnnew_tuple(&self, elements:Vec<PyObjectRef>) ->PyObjectRef
[src]pub fnnew_list(&self, elements:Vec<PyObjectRef>) ->PyObjectRef
[src]pub fnnew_set(&self) ->PyObjectRef
[src]pub fnnew_dict(&self) ->PyDictRef
[src]pub fnnew_class(&self, name: &str, base:PyClassRef) ->PyClassRef
[src]pub fnnew_namespace(&self) ->PyObjectRef
[src]pub fnnew_function<F, T, R, VM>(&self, f: F) ->PyObjectRefwhere
F:IntoPyNativeFunc<T, R, VM>,
[src]pub fnnew_method<F, T, R, VM>(&self, f: F) ->PyObjectRefwhere
F:IntoPyNativeFunc<T, R, VM>,
[src]pub fnnew_classmethod<F, T, R, VM>(&self, f: F) ->PyObjectRefwhere
F:IntoPyNativeFunc<T, R, VM>,
[src]pub fnnew_readonly_getset<F, T>(
&self,
name: implInto<String>,
f: F
) ->PyObjectRefwhere
F:IntoPyGetterFunc<T>,
[src]pub fnnew_getset<G, S, T, U>(
&self,
name: implInto<String>,
g: G,
s: S
) ->PyObjectRefwhere
G:IntoPyGetterFunc<T>,
S:IntoPySetterFunc<U>,
[src]pub fnnew_code_object(&self, code:CodeObject) ->PyCodeRef
[src]pub fnnew_pyfunction(
&self,
code_obj:PyCodeRef,
scope:Scope,
defaults:Option<PyTupleRef>,
kw_only_defaults:Option<PyDictRef>
) ->PyObjectRef
[src]pub fnnew_bound_method(
&self,
function:PyObjectRef,
object:PyObjectRef
) ->PyObjectRef
[src]pub fnnew_base_object(
&self,
class:PyClassRef,
dict:Option<PyDictRef>
) ->PyObjectRef
[src]pub fnunwrap_constant(&self, value: &Constant) ->PyObjectRef
[src]impl !RefUnwindSafe forPyContext
impl !Send forPyContext
impl !Sync forPyContext
implUnpin forPyContext
impl !UnwindSafe forPyContext
impl<T>Any for Twhere
T: 'static + ?Sized,
[src]impl<T>Borrow<T> for Twhere
T: ?Sized,
[src]impl<T>BorrowMut<T> for Twhere
T: ?Sized,
[src]fnborrow_mut(&mut self) ->&mutT
[src]impl<T>From<T> for T
[src]impl<T, U>Into<U> for Twhere
U:From<T>,
[src]impl<T> Same<T> for T
typeOutput = T
Should always beSelf
impl<T, U>TryFrom<U> for Twhere
U:Into<T>,
[src]typeError =Infallible
The type returned in the event of a conversion error.
fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>
[src]impl<T, U>TryInto<U> for Twhere
U:TryFrom<T>,
[src]typeError = <U asTryFrom<T>>::Error
The type returned in the event of a conversion error.
fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>
[src]impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fnvzip(self) -> V