pub trait TryIntoRef<T> { fntry_into_ref(self, vm: &VirtualMachine) ->PyResult<PyRef<T>>;}
Allows coercion of a types into PyRefs, so that we can write functions that can takerefs, pyobject refs or basic types.
fntry_into_ref(self, vm: &VirtualMachine) ->PyResult<PyRef<T>>
implTryIntoRef<PyString> forString
[src]fntry_into_ref(self, vm: &VirtualMachine) ->PyResult<PyRef<PyString>>
[src]impl<'_>TryIntoRef<PyString> for &'_str
[src]fntry_into_ref(self, vm: &VirtualMachine) ->PyResult<PyRef<PyString>>
[src]impl<T> TryIntoRef<T> forPyRef<T>
[src]fntry_into_ref(self, _vm: &VirtualMachine) ->PyResult<PyRef<T>>
[src]impl<T> TryIntoRef<T> forPyObjectRefwhere
T:PyValue,
[src]fntry_into_ref(self, vm: &VirtualMachine) ->PyResult<PyRef<T>>
[src]