GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • rustpython_vm
  • function

This view

  • Original page
  • New address

GeezerVison is showing rustpython.github.io — rustpython_vm::function::single_or_tuple_any - Rust

[−][src]Function rustpython_vm::function::single_or_tuple_any

pub fn single_or_tuple_any<T: PyValue, F: Fn(PyRef<T>) -> PyResult<bool>>(
    obj: PyObjectRef,
    predicate: F,
    message: fn(_: &PyObjectRef) -> String,
    vm: &VirtualMachine
) -> PyResult<bool>

Tests that the predicate is True on a single value, or if the value is a tuple a tuple, then test that any of the values contained within the tuples satisfies the predicate. Type parameter T specifies the type that is expected, if the input value is not of that type or a tuple of values of that type, then a TypeError is raised.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.