Elixir v1.2.6 Inspect.Opts
Defines the Inspect.Opts used by the Inspect protocol.
The following fields are available:
:structs- whenfalse, structs are not formatted by the inspect protocol, they are instead printed as maps, defaults totrue.:binaries- when:as_stringsall binaries will be printed as strings, non-printable bytes will be escaped.When
:as_binariesall binaries will be printed in bit syntax.When the default
:infer, the binary will be printed as a string if it is printable, otherwise in bit syntax.:char_lists- when:as_char_listsall lists will be printed as char lists, non-printable elements will be escaped.When
:as_listsall lists will be printed as lists.When the default
:infer, the list will be printed as a char list if it is printable, otherwise as list.:limit- limits the number of items that are printed for tuples, bitstrings, and lists, does not apply to strings nor char lists, defaults to 50.:pretty- if set totrueenables pretty printing, defaults tofalse.:width- defaults to the 80 characters, used when pretty istrueor when printing to IO devices.:base- print integers as :binary, :octal, :decimal, or :hex, defaults to :decimal:safe- whenfalse, failures while inspecting structs will be raised as errors instead of being wrapped in the Inspect.Error exception. This is useful when debugging failures and crashes for custom inspect implementations