module

Crygen::Helpers::Annotation

This module provides helper methods for adding annotations to objects easily.

Instance methods

always_inline

Add a @[AlwaysInline] annotation. Returns: an object class itself.

Source
call_convention(name : String) : self

Add a @[CallConvention] annotation. Returns: an object class itself.

Source
deprecated(message : String) : self

Add a @[Deprecated] annotation on the method with a custom message. Returns: an object class itself.

Source
deprecated

Add a @[Deprecated] annotation. Returns: an object class itself.

Source
experimental(message : String) : self

Add a @[Experimental] annotation on the method with a custom message. Returns: an object class itself.

Source
experimental

Add a @[Experimental] annotation. Returns: an object class itself.

Source
extern

Add a @[Extern] annotation. Returns: an object class itself.

Source
flags

Add a @[Flags] annotation. Returns: an object class itself.

Source
no_inline

Add a @[NoInline] annotation. Returns: an object class itself.

Source
thread_local

Add a @[ThreadLocal] annotation. Returns: an object class itself.

Source