Struct FormattedRule
- Namespace
- NMF.AnyText.PrettyPrinting
- Assembly
- NMF.AnyText.Core.dll
Denotes a tuple of a rule and formatting instructions
public record struct FormattedRule : IEquatable<FormattedRule>
- Implements
- Inherited Members
Constructors
FormattedRule(Rule, FormattingInstruction[])
Denotes a tuple of a rule and formatting instructions
public FormattedRule(Rule Rule, FormattingInstruction[] FormattingInstructions)
Parameters
Rule
RuleThe actual rule
FormattingInstructions
FormattingInstruction[]Formatting instructions
Properties
FormattingInstructions
Formatting instructions
public FormattingInstruction[] FormattingInstructions { readonly get; set; }
Property Value
Rule
The actual rule
public Rule Rule { readonly get; set; }
Property Value
Operators
implicit operator FormattedRule(Rule)
Implicitly converts a rule into a formatted rule by not applying formatting
public static implicit operator FormattedRule(Rule rule)
Parameters
rule
Rule