Len

Wraps Foo.length or another function as python's ___len__ function.

Requires signature

Py_ssize_t length();

This is a limitation of the C/Python API.

  1. template Len()
    template Len () {}
  2. template Len(alias fn)

Members

Aliases

Len
alias Len = _Len!()
Undocumented in source.

Meta