[][src]Trait rustpython_vm::obj::objgetset::IntoPyGetterFunc

pub trait IntoPyGetterFunc<T> {
    fn into_getter(self) -> PyGetterFunc;
}

Required methods

fn into_getter(self) -> PyGetterFunc

Loading content...

Implementors

impl<F, S, R> IntoPyGetterFunc<(RefParam<S>, R, VirtualMachine)> for F where
    F: Fn(&S, &VirtualMachine) -> R + 'static,
    S: PyValue,
    R: IntoPyObject
[src]

impl<F, S, R> IntoPyGetterFunc<(RefParam<S>, R)> for F where
    F: Fn(&S) -> R + 'static,
    S: PyValue,
    R: IntoPyObject
[src]

impl<F, T, R> IntoPyGetterFunc<(OwnedParam<T>, R, VirtualMachine)> for F where
    F: Fn(T, &VirtualMachine) -> R + 'static,
    T: TryFromObject,
    R: IntoPyObject
[src]

impl<F, T, R> IntoPyGetterFunc<(OwnedParam<T>, R)> for F where
    F: Fn(T) -> R + 'static,
    T: TryFromObject,
    R: IntoPyObject
[src]

Loading content...