Cldr.PersonName.Format protocol (Cldr Person Names v1.0.0)

View Source

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_string(name, options \\ [])

@spec to_string(
  name :: struct(),
  options :: Cldr.PersonName.Formatter.format_options()
) ::
  {:ok, String.t()} | {:error, Cldr.PersonName.error_message()}
@spec to_string(
  name :: struct(),
  options :: Cldr.PersonName.Formatter.format_options()
) ::
  String.t() | no_return()

to_string!(name, options \\ [])