Skip to main content

signed

Function signed 

Source
pub fn signed<T: SignedValue>(value: T) -> Signed<T>
Expand description

Wraps a signed primitive for C printf-compatible d or i formatting.

The wrapper is required for integer precision or Signed::space_sign. Native Rust formatting is already exact for ordinary d/i, width, -, +, and 0 cases. See the module documentation for paired Rust and C examples of every supported conversion and flag.