{% extends "base.html" %} {% block title %}{{ namespace.name }}.{{ struct.name }}{% endblock %} {% block meta_other %} {% endblock %} {% macro sidebar_block(elements, struct_name, section_title, section_class, section_fragment) -%} {% if elements|length > 0 %}
{{ section_title }}
{% endif %} {% endmacro %} {% block sidebar %}
Type
{{ sidebar_block(struct.ctors, struct.name, "Constructors", "ctor", "ctor") }} {{ sidebar_block(struct.methods, struct.name, "Instance methods", "method", "method") }} {{ sidebar_block(struct.type_funcs, struct.name, "Functions", "func", "type_func") }} {% endblock %} {% block content %}

Struct

{{ namespace.name }}.{{ struct.name }}

Description {% if CONFIG.source_location_url and struct.docs_location %} [src] {% endif %}

{{ struct.c_decl }}
{{ struct.description }}
{% if struct.fields %}
Structure members {% if CONFIG.source_location_url and struct.source_location %} [src] {% endif %}
{% for field in struct.fields %} {% endfor %}
{{ field.name }} {{ field.description }}
{% endif %}
{% if struct.stability %} {% endif %} {% if struct.available_since %} {% endif %} {% if struct.deprecated_since %} {% endif %}
Stability:{{ struct.stability }}
Available since:{{ struct.available_since }}
Deprecated since:{{ struct.deprecated_since.version }}
{{ struct.deprecated_since.message }}
{% if struct.attributes %}
{% for (key, value) in struct.attributes.items() %} {% endfor %}
{{ key|escape }}{{ value|escape }}
{% endif %}
{% if struct.ctors %}

Constructors

{% for ctor in struct.ctors %}
{{ ctor.identifier }}
{{ ctor.summary }}
{% if ctor.available_since or ctor.deprecated_since -%}
{%- if ctor.available_since -%}

Available since: {{ ctor.available_since }}

{%- endif -%} {%- if ctor.deprecated_since -%}

Deprecated since: {{ ctor.deprecated_since }}

{%- endif -%}
{%- endif %}
{% endfor %}
{% endif %} {% if struct.methods %}

Instance methods

{% for method in struct.methods %}
{{ method.identifier }}
{{ method.summary }}
{% if method.available_since or method.deprecated_since -%}
{%- if method.available_since -%}

Available since: {{ method.available_since }}

{%- endif -%} {%- if method.deprecated_since -%}

Deprecated since: {{ method.deprecated_since }}

{%- endif -%}
{%- endif %}
{% endfor %}
{% endif %} {% if struct.type_funcs %}

Functions

{% for func in struct.type_funcs %}
{{ func.identifier }}
{{ func.summary }}
{% if func.available_since or func.deprecated_since -%}
{%- if func.available_since -%}

Available since: {{ func.available_since }}

{%- endif -%} {%- if func.deprecated_since -%}

Deprecated since: {{ func.deprecated_since }}

{%- endif -%}
{%- endif %}
{% endfor %}
{% endif %}
{% endblock %}