pub trait TryFromBorrowedObject<'a>: Sized
where Self: 'a,
{ // Required method fn try_from_borrowed_object( vm: &VirtualMachine, obj: &'a PyObject ) -> PyResult<Self>; }
Expand description

Lower-cost variation of TryFromObject

Required Methods§

source

fn try_from_borrowed_object( vm: &VirtualMachine, obj: &'a PyObject ) -> PyResult<Self>

Attempt to convert a Python object to a value of this type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> TryFromBorrowedObject<'a> for &'a str

source§

impl<'a> TryFromBorrowedObject<'a> for bool

source§

impl<'a> TryFromBorrowedObject<'a> for i8

source§

impl<'a> TryFromBorrowedObject<'a> for i16

source§

impl<'a> TryFromBorrowedObject<'a> for i32

source§

impl<'a> TryFromBorrowedObject<'a> for i64

source§

impl<'a> TryFromBorrowedObject<'a> for i128

source§

impl<'a> TryFromBorrowedObject<'a> for isize

source§

impl<'a> TryFromBorrowedObject<'a> for u8

source§

impl<'a> TryFromBorrowedObject<'a> for u16

source§

impl<'a> TryFromBorrowedObject<'a> for u32

source§

impl<'a> TryFromBorrowedObject<'a> for u64

source§

impl<'a> TryFromBorrowedObject<'a> for u128

source§

impl<'a> TryFromBorrowedObject<'a> for usize

source§

impl<'a> TryFromBorrowedObject<'a> for String

source§

impl<'a> TryFromBorrowedObject<'a> for ClockId

source§

impl<'a, T: 'a + TryFromObject> TryFromBorrowedObject<'a> for Vec<T>

Implementors§