HomeManualTopicsTypesSymbols

std_types::character/std::serialize

serializes the character

Parameters

self
the character to serialize
indent (default: undefined)
the indentation depth in character positions

Result

str
the serialization of the character

Description

The optional indent is obeyed.

Example

$str serialize('a') println! str

Output

'a'

Example

$str serialize('a' 2) println! str

Output

'a'

Topic

Strings

Implements

std::serialize returns a machine readable string representation of the object