code: def render(self, ctx=None):
          '''
          :param ctx: rendering context in which the method was called
          :rtype: `Bits`
          :return: rendered value of the container
          '''
          super(Trunc, self).render(ctx)
          self._current_value = self._current_rendered
          self._current_rendered = self._current_rendered[:self._max_size]
          return self._current_renderef render(self, ctx=None):
          '''
          :param ctx: rendering context in which the method was called
          :rtype: `Bits`
          :return: rendered value of the container
          '''
          super(Trunc, self).render(ctx)
          self._current_value = self._current_rendered
          self._current_rendered = self._current_rendered[:self._max_size]
          return self._current_rendered
docs: :param ctx: rendering context in which the method was called
          :rtype: `Bits`
          :return: rendered value of the container