isMixin abstract method

bool isMixin()

Checks if this class is a mixin declaration.

Returns:

  • true if declared with mixin keyword
  • false for regular classes

Example:

mixin Serializable {}
Class<Serializable>().isMixin(); // true

Implementation

bool isMixin();