REPR

Term.Repr.termshowFunction
termshow

Styled string representation of any object.

termshow prints to stdout (or any other IO) a styled representation of the object. Dedicated methods create displays for specify types such as Dict or Vector.

source
Term.Repr.termshowMethod

termshow(io::IO, arr::AbstractArray; kwargs...)

Show the content of a multidimensional array as a series of 2D slices.

source
Term.Repr.termshowMethod

termshow(io::IO, d::Dict; kwargs...)

Show a dictionary's keys and values and their data types.

source
Term.Repr.termshowMethod

termshow(io::IO, mtx::AbstractMatrix; kwargs...)

Show a matrix content as a 2D table visualization.

source
Term.Repr.termshowMethod

termshow(io::IO, obj)

Generic method for any object not caught by dedicated methods. Creates a Panel with the object's fields and contents.

source
Term.Repr.termshowMethod

termshow(io::IO, obj::DataType; kwargs...)

Show a type's arguments, constructors and docstring.

source
Term.Repr.termshowMethod

termshow(io::IO, vec::Union{Tuple,AbstractVector}; kwargs...)

Show a vector's content as a 1D table visualization.

source
Term.Repr.with_reprMethod
with_repr(typedef::Expr)

Function for the macro @with_repr which creates a Base.show method for a type.

The show method shows the field names/types for the type and the values of the fields.

Example

@with_repr struct TestStruct2
    x::Int
    name::String
    y
end
source
Term.Repr.@with_reprMacro

with_repr(typedef::Expr)

Function for the macro @with_repr which creates a Base.show method for a type.

The show method shows the field names/types for the type and the values of the fields.

Example

@with_repr struct TestStruct2
x::Int
name::String
y
end
source