subtypes
subtypes(T::DataType)
Return a list of immediate subtypes of DataType T
. Note that all currently loaded subtypes are included, including those not visible in the current module.
Examples
julia> subtypes(Number)
2-element Array{Any,1}:
Complex{T<:Real}
Real
julia> subtypes(Int)
0-element Array{Any,1}
See Also
assert, backtrace, code_llvm, code_lowered, code_native, code_typed, code_warntype, :@which, compilecache, current_module, eval, finalize, finalizer, fullname, function_module, function_name, include_dependency, InterruptException, invoke, isconst, isdefined, isgeneric, methodswith, method_exists, module_name, module_parent, require, subtypes, unsafe_load, workspace, __precompile__,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.