# "isstruct"?

**URL:** https://discourse.julialang.org/t/isstruct/40338
**Category:** New to Julia
**Created:** [May 28, 2020, 1:53pm UTC](https://discourse.julialang.org/t/isstruct/40338 "2020-05-28T13:53:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tomtom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomtom/32/5106_2.png) [@tomtom](https://discourse.julialang.org/u/tomtom)
#### Post date: [May 28, 2020, 1:53pm UTC](https://discourse.julialang.org/t/isstruct/40338/1 "2020-05-28T13:53:59Z")

</div>

how could I identity if a Type is a composite type, i.e., something that could be `getfield()` ? e.g. by a `isstruct()` function?  
thanks.

oh, sorry for the post. The answer is: `Base.isstructtype()`

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [May 28, 2020, 2:02pm UTC](https://discourse.julialang.org/t/isstruct/40338/2 "2020-05-28T14:02:35Z")

</div>

> [@tomtom](#):
>
> sorry for the post.

I’d say no need to say sorry cos u r actually helping ppl who will inevitably google this same question sometime in the future.

---

<div class="post-metadata">

### Author: ![felipenoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/felipenoris/32/553_2.png) [@felipenoris](https://discourse.julialang.org/u/felipenoris)
#### Post date: [May 28, 2020, 2:14pm UTC](https://discourse.julialang.org/t/isstruct/40338/3 "2020-05-28T14:14:18Z")

</div>

This is useful. Thanks!

---

<div class="post-metadata">

### Author: ![tomtom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomtom/32/5106_2.png) [@tomtom](https://discourse.julialang.org/u/tomtom)
#### Post date: [May 28, 2020, 3:22pm UTC](https://discourse.julialang.org/t/isstruct/40338/4 "2020-05-28T15:22:00Z")

</div>

btw, I think a better string matching algorithm could be employed as I searched [“isstruct” in docs.julialang.org](https://docs.julialang.org/en/v1.4/search/?q=isstruct) but it does **not** show up anything about `isstructtype()`.
