def size(self):
        """Size of the layout.

        Returns
        -------
        :class:`int`
            The amount of bits required to store every field in the layout.
        """
Size of the layout.

        Returns
        -------
        :class:`int`
            The amount of bits required to store every field in the layout.
        
amaranth/lib/data.py