Allocation-free counting sink with the same limits as the storing sink.
More...
#include <pss_compact.hpp>
|
| constexpr std::expected< void, PssError > | beginRule (PssLocation location) |
| constexpr std::expected< void, PssError > | type (PssSpan span, PssLocation location) |
| constexpr std::expected< void, PssError > | id (PssSpan span, PssLocation location) |
| constexpr std::expected< void, PssError > | className (PssSpan span, PssLocation location) |
| constexpr std::expected< void, PssError > | readOnly () |
| constexpr std::expected< void, PssError > | state (StyleState state) |
| constexpr std::expected< void, PssError > | declaration (PssProperty property, PssValue value, PssLocation location) |
| constexpr std::expected< void, PssError > | endRule () |
| constexpr std::expected< void, PssError > | text (std::size_t bytes, PssLocation location) |
Allocation-free counting sink with the same limits as the storing sink.
◆ beginRule()
| std::expected< void, PssError > portals::style::ct::detail::PssCountSink::beginRule |
( |
PssLocation | location | ) |
|
|
inlineconstexpr |
- Parameters
-
| location | Rule source coordinates. |
- Returns
- Admission result.
◆ className()
- Parameters
-
| span | Source class text span. |
| location | Original source coordinates. |
- Returns
- Admission result.
◆ declaration()
- Parameters
-
| property | Validated destination. |
| value | Validated scalar. |
| location | Original property coordinates. |
- Returns
- Admission result counting every occurrence.
◆ endRule()
| std::expected< void, PssError > portals::style::ct::detail::PssCountSink::endRule |
( |
| ) |
|
|
inlineconstexpr |
- Returns
- Successful complete-rule admission.
◆ id()
- Parameters
-
| span | Source ID text span. |
| location | Original source coordinates. |
- Returns
- Admission result.
◆ readOnly()
| std::expected< void, PssError > portals::style::ct::detail::PssCountSink::readOnly |
( |
| ) |
|
|
inlineconstexpr |
- Returns
- Admission of the storage-free orthogonal predicate.
◆ state()
| std::expected< void, PssError > portals::style::ct::detail::PssCountSink::state |
( |
StyleState | state | ) |
|
|
inlineconstexpr |
- Parameters
-
| state | Validated state, which consumes no additional record. |
- Returns
- Successful admission.
◆ text()
| std::expected< void, PssError > portals::style::ct::detail::PssCountSink::text |
( |
std::size_t | bytes, |
|
|
PssLocation | location ) |
|
inlineconstexpr |
- Parameters
-
| bytes | Text bytes admitted into the one shared arena. |
| location | Original coordinates for a limit error. |
- Returns
- Admission result with overflow-safe subtraction.
◆ type()
- Parameters
-
| span | Source text span counted as owned bytes. |
| location | Original coordinates for overflow diagnostics. |
- Returns
- Admission result.
The documentation for this struct was generated from the following file: