Skip to content

zigar.image.Any(acc).getField(self, format)

Chung Leong edited this page Jul 28, 2026 · 2 revisions

JavaScript | PHP


Return the union field corresponding to format.

Arguments:

  • self: @This()
  • format: Format

Return value:

  • format.Type(acc)

Note:

This function is simply a shorthand for @field(self, @tagName(format)).


Any(acc) | formats

Clone this wiki locally