as

Converts from a Janet object to an object of the given type A safe version of the function will be used for all types that can be safely converted.

  1. T as(Janet janet)
  2. T as(Janet janet)
  3. T as(Janet* janet)
  4. T as(Janet* janet)
    @nogc
    T
    as
    if (
    isPointer!T ||
    isSomeString!T
    ||
    is(T == struct)
    )
  5. T as(Janet* janet)

Meta