apply_str_num

Function apply_str_num 

Source
pub fn apply_str_num<T, N, O>(
    lhs: StringAVTExt<'_, T>,
    rhs: &[N],
    op: ArithmeticOperator,
) -> Result<StringArray<O>, KernelError>
where T: Integer, N: ToPrimitive + Copy, O: Integer + NumCast,
Expand description

String-numeric arithmetic operation dispatcher. Supports string multiplication (repeat string N times) with safety limits. Other operations pass through unchanged. Handles null propagation correctly.

ยงType Parameters

  • T: Offset type for the input array (e.g., u32, u64)
  • N: Numeric type convertible to usize
  • O: Offset type for the output array