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);
}   pub fn toIndexAllowNone(inst: Ref) ?Index  inst: Ref  pub fn toIndexAllowNone(inst: Ref) ?Index {
    if (inst == .none) return null;
    return toIndex(inst);
}