# REPR

Term.Repr.style_methodsMethod
style_methods(methods::Union{Vector{Base.Method}, Base.MethodList}, tohighlight::AbstractString)

Create a Renderable with styled Method information for inspect(::DataType)

source
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, obj)

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

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