pub fn is_null_pointer_optimizable(
    ty: &Type,
    custom_types: &[&'static str]
) -> bool
Expand description

Checks whether the type could be null pointer optimizable.

Note that this is not a foolproof solution, and might have both false positives and negatives.

Arguments

  • ty - input type to check against.
  • custom_types - custom types that are NPO-able.