Function toIndexAllowNone [src]

Prototype

pub fn toIndexAllowNone(inst: Ref) ?Index

Parameters

inst: Ref

Source

pub fn toIndexAllowNone(inst: Ref) ?Index { if (inst == .none) return null; return toIndex(inst); }