Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > Type Traits

Type Traits

Panther
Documentation


@bitWidth

func @bitWidth = <{T: Type}> () -> USize;

Get the bitwidth of type T. T must be integral.

@sizeOf

func @sizeOf = <{T: Type}> () -> USize;

Get the size of type T. T cannot be Void.