MaterializedResult

struct MaterializedResult<Category>

A successful materialization or the parse failure that rejected it.

As with SyntaxResult, exactly one optional field should be present. Keeping the envelope uniform lets macro services report failures without throwing an effect across the host boundary.

Properties

let value: MaterializedSyntax<Category>?

The virtual source, tokens, AST, and identifier metadata on success.

let failure: SyntaxFailure?

The structured parse or materialization failure.

Methods

consuming func into_value() -> MaterializedSyntax<Category>?

Extracts successful materialized syntax and discards any failure information.

Inspect failure before consuming the envelope when diagnostics matter.

View Source
pub consuming func into_value() -> MaterializedSyntax<Category>? {
	self.value
}