Skip to main content

function

repr

repr[T: Representable](value: T) -> String

Returns the string representation of the given value.

Parameters:

  • T (Representable): The type of value. Must implement the Representable trait.

Args:

  • value (T): The value to get the string representation of.

Returns:

The string representation of the given value.

repr(value: None) -> String

Returns the string representation of None.

Args:

  • value (None): A None value.

Returns:

The string representation of None.