Struct NestingVerdict

Assembly: redb.Route.dll

Result of evaluating an against one enclosing scope.

public readonly record struct NestingVerdict : IEquatable<NestingVerdict>

Implements

Properties

Allowed

No constraint.

public static NestingVerdict Allowed { get; }

Message

Human-readable reason (required for Warn/Forbid).

public string? Message { get; init; }

Policy

What to do about the nesting.

public NestingPolicy Policy { get; init; }

Methods

Forbid(string)

Ill-formed — fail the build with the given message.

public static NestingVerdict Forbid(string message)

Warn(string)

Allowed but risky — warn with the given message.

public static NestingVerdict Warn(string message)

Constructors

NestingVerdict(NestingPolicy, string?)

Result of evaluating an against one enclosing scope.