Interface TraitError

All Superinterfaces:
MaybeTrait
All Known Implementing Classes:
TraitError.ArityNotEven, TraitError.SymNotStr

public sealed interface TraitError extends MaybeTrait permits TraitError.ArityNotEven, TraitError.SymNotStr
Error that the vec cannot be treated as a trait.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    The arity is not even, so the vec cannot be a trait.
    static final record 
    The elem specified by the index is not a str.