LiveDebugger.Utils.Parsers (LiveDebugger v0.1.4)

View Source

This module provides functions to parse some structs to string representation and vice versa.

Summary

Functions

cid_to_string(cid)

@spec cid_to_string(cid :: struct()) :: String.t()

module_to_string(module)

@spec module_to_string(module :: module()) :: String.t()

parse_timestamp(timestamp)

@spec parse_timestamp(non_neg_integer()) :: String.t()

pid_to_string(pid)

@spec pid_to_string(pid :: pid()) :: String.t()

string_to_cid(string)

@spec string_to_cid(string :: String.t()) :: {:ok, struct()} | :error

string_to_pid(string)

@spec string_to_pid(string :: String.t()) :: {:ok, pid()} | :error