pub enum DcRole {
Show 349 variants
Range,
BeginNumber,
EndNumber,
Positive,
Negative,
Base64Start,
Base64End,
StartEncapsulationUtf8,
EndEncapsulationUtf8,
Base64Padding,
StartEncapsulationBinary,
EndEncapsulationBinary,
ReplacementUnavailUnicode,
ReplacementUnavailDc,
BeginDocument,
EndDocument,
BeginSingleLineComment,
BeginSingleLineCommentNewLine,
EndSingleLineComment,
BeginBlockComment,
BeginBlockCommentNewLine,
EndBlockComment,
Escape,
LangSay,
BeginParameter,
EndParameter,
BeginLiteral,
EndLiteral,
BeginTypeDef,
EndTypeDef,
TypeString,
LangAssign,
Assign,
BeginIdentifier,
EndIdentifier,
TypeAny,
ReferenceNamedObject,
TypeNumber,
RoutineInvocation,
TypeRoutine,
LocalNode,
BeginAssociativityGroup,
EndAssociativityGroup,
TypeUnion,
TypeTransformation,
TypeConversion,
TypeTransmutation,
TypeRoutineName,
LongDc,
BeginList,
EndList,
ListElementSeparator,
BeginLegacyKvMap,
EndLegacyKvMap,
OptionalPresent,
OptionalAbsent,
BeginEnvironmentDescription,
EndEnvironmentDescription,
BeginFileFlagsDescription,
EndFileFlagsDescription,
BeginTimeMoment,
EndTimeMoment,
BeginDateMagnitude,
EndDateMagnitude,
BeginDateDuration,
EndDateDuration,
EquivalentRepresentations,
BeginFormatRepresentation,
EndFormatRepresentation,
FilePathDelimiter,
BeginKvPair,
EndKvPair,
TypeIntersection,
BooleanTrue,
BooleanFalse,
FormatParamApplication,
RawFileFlags,
ReferenceBoundValue,
EnterIdentifierScope,
ExitIdentifierScope,
BeginChecksummedSection,
EndChecksummedSection,
SectionDigest,
SequenceIdentifier,
BeginOperationSession,
EndOperationSession,
SourcePath,
DestinationPath,
OperationCompleted,
BeginErrorRecord,
EndErrorRecord,
BeginWarningRecord,
EndWarningRecord,
LogMessage,
TraceIdentifier,
OperationStatusCode,
BeginKvMap,
EndKvMap,
PartiallyEquivalentRepresentations,
EntityType,
RelationshipType,
Relationship,
Entity,
Replacement,
Preferred,
Decomposition,
CanonicalName,
Description,
ProgrammaticIdentifier,
Nickname,
InformalAlias,
FormalAlias,
Annotation,
MagicSignature,
CanonicalCombiningClass,
BidirectionalClass,
CaseMappingPartner,
CharacterGeneralCategory,
HasA,
IsEqualTo,
IsInstanceOf,
IsSubtypeOf,
IsBasedOn,
IsDeprecated,
IsClosingDelimiterFor,
Supersedes,
Retracts,
CrossReference,
SyntaxRule,
DataFormatDescription,
CharacterScript,
OperatingSystem,
IsAssociatedWith,
SelfReference,
WildcardPattern,
PatternConjunction,
PatternAlternation,
PatternRepetition,
NegatedPattern,
SubpatternMatch,
PatternCapture,
PatternReplacement,
DcGeneralCategory,
UnicodeScript,
HasValue,
CanonicalDecomposition,
CompatibilityDecomposition,
ApproximateDecomposition,
SemanticDecomposition,
EnclosingDocument,
EvaluateValueAsAtom,
BeginGraphNodeDefinition,
EndGraphNodeDefinition,
GeneralFormatImportSupport,
DcFormatImportSupport,
GeneralFormatExportSupport,
DcFormatExportSupport,
GeneralFormatTestCoverage,
DcFormatTestCoverage,
ImplementationSupportLevel,
SupportNotApplicable,
SupportWorkInProgress,
SupportPartial,
SupportComplete,
SupportLosslessRoundtrip,
SupportLosslessStrictValidation,
FormatVariationAspect,
DefaultFormatVariant,
DcFormatVariationNickname,
CollectiveToolboxSeedGraphDataSource,
CollectiveToolboxDcCsvSeedDatabase,
ManualEntry,
DistributeStatementOverEach,
ThisElement,
TypeAtomDc,
GlobalGraphSystemBlockMostRecentNodeId,
DataByteLength,
ValueRange,
ExclusiveRangeEndpoint,
IsStable,
InContextOf,
WasmStart,
WasmFbStart,
WasmFcStart,
WasmFdPage0Start,
WasmFdPage1Start,
BeginWasmProgram,
EndWasmProgram,
DcDocumentExecutionKernel,
CollectiveToolboxWorkspace,
ResolveToPin,
MinimalSystemGraphQuery,
ExecutePureWasmProgram,
SectionTimestampNodeCreationTime,
RoutineTestSuite,
BeginModule,
EndModule,
NamespaceDecl,
BeginUseImport,
EndUseImport,
UseImportItem,
DeclareLet,
DeclareConst,
DeclarePub,
AssignSet,
TypedValueRef,
BeginRoutineDecl,
EndRoutineDecl,
RoutineParam,
BeginTestBlock,
EndTestBlock,
BeginTestCase,
TestExpectedOut,
EndTestCase,
BeginRoutineCall,
EndRoutineCall,
BeginCodeBlock,
EndCodeBlock,
BeginTuple,
EndTuple,
BeginPositionalStructDecl,
EndPositionalStructDecl,
BeginPositionalStructValue,
EndPositionalStructValue,
BeginStagerModule,
EndStagerModule,
DeclareBrandType,
BeginNamedStructDecl,
EndNamedStructDecl,
NamedStructFieldDecl,
BeginNamedStructValue,
EndNamedStructValue,
NamedStructFieldInit,
BeginEnumDecl,
EndEnumDecl,
EnumVariantDecl,
EnumVariantValue,
OptionNoneValue,
OptionSomeValue,
ResultOkValue,
ResultErrValue,
ErrorTagValue,
QuoteFollowingDcAsAtom,
BeginRoutine,
EndRoutine,
EnclosingRoutine,
IfConditional,
WhileLoop,
ForEach,
BreakLoop,
ContinueLoop,
ReturnRoutine,
FaultTrap,
NoOp,
BeginMatch,
EndMatch,
MatchCaseArm,
PropagateOp,
AddOp,
SubOp,
MulOp,
DivOp,
RemOp,
NegOp,
WrapAddOp,
WrapSubOp,
WrapMulOp,
BitAndOp,
BitOrOp,
BitXorOp,
BitNotOp,
ShlOp,
ShrOp,
RotlOp,
RotrOp,
ClzOp,
CtzOp,
PopcntOp,
LogicalNotOp,
LogicalAndOp,
LogicalOrOp,
EqOp,
NeOp,
LtOp,
LeOp,
GtOp,
GeOp,
ConvertOp,
BitcastOp,
SeqLenOp,
SeqGetOp,
SeqSliceOp,
SeqConcatOp,
GetPositionalFieldOp,
WithPositionalFieldOp,
GetNamedFieldOp,
WithNamedFieldOp,
WrapNominalOp,
UnwrapNominalOp,
TotalAddOp,
TotalSubOp,
TotalMulOp,
TotalDivOp,
TotalModOp,
TotalTruncRemOp,
TotalNegOp,
TotalShlOp,
TotalShrOp,
TotalConvertOp,
TotalSeqGetOp,
TotalSeqSliceOp,
TotalBufSetOp,
OptionIsSomeOp,
OptionIsNoneOp,
ResultIsOkOp,
ResultIsErrOp,
UnwrapOrOp,
OptionOkOrOp,
ByteLenOp,
StagelListType,
StagelBufType,
BeginStagelList,
EndStagelList,
StagelBufNew,
StagelBufFill,
StagelBufPush,
StagelBufExtend,
StagelBufSet,
StagelBufFreeze,
ConvertDcStringToWasm,
MakeRatOp,
DcFromU128Op,
U128FromDcOp,
DcsFromSOp,
SFromDcsOp,
SeqExplodeOp,
SeqImplodeOp,
RequestHostCapabilityOp,
TypeTuple,
TypeStruct,
TypeOption,
TypeResult,
TypeError,
TypeView,
TypeCursor,
TypeNominal,
Base64Digit,
TypeToken,
EvaluableExpressionStarter,
}Expand description
Classification of syntactic framing and semantic roles for Document Characters.
Variants§
Range
The DCE range character. Used to represent ranges in DCE. See the wiki for more information. (4).
BeginNumber
Begin a DCE number. (6).
EndNumber
End a DCE number. (7).
Positive
Positive value (syntactical representation — This is not the + character) (10).
Negative
Negative (syntactical representation — This is not the − character) (11).
Base64Start
Base 64 encapsulation digit 0 (127).
Base64End
Base 64 encapsulation digit 63 (190).
StartEncapsulationUtf8
Begin Base 64 encapsulated UTF-8 (191).
EndEncapsulationUtf8
End Base 64 encapsulated UTF-8 (192).
Base64Padding
Base 64 encapsulation padding character (195).
StartEncapsulationBinary
Arbitrary binary data (base64 encoded, no semantic significance assigned to it unless optional type is specified). Optional length counts decoded payload bytes; optional checksum covers those bytes. (203).
EndEncapsulationBinary
See description for 203 (204).
Used to replace an incoming character whose value is unknown or unrepresentable in Unicode (206).
Used to replace an incoming character whose value is not mapped to a Dc (document component) (207).
BeginDocument
Beginning of a document (235).
EndDocument
Terminates a document begun by Dc 235. (236).
BeginSingleLineComment
Begins a comment that, when represented in EM (Ember Language source) format, should be displayed as a “#”-style comment. All characters except 248 and 255 will be ignored. Use 255 248 to represent 248 within the comment, and 255 255 to represent 255 within the comment. (246).
BeginSingleLineCommentNewLine
As with 247, but starting on a new line in the source form. (247).
EndSingleLineComment
Terminates a comment region begun by 246 or 247. (248).
BeginBlockComment
As with 248, but creating a “/* */”-style block comment. (249).
BeginBlockCommentNewLine
As with 250, but starting on a new line in the source form. (250).
EndBlockComment
Terminates a comment region begun by 249 or 250. (251).
Escape
Indicates that the next character should be ignored. (255).
LangSay
Send the specified string to the current output context, adding a final line feed if one is not present (256).
BeginParameter
Frames one value expression as a parameter. A literal parameter remains quoted data. (258).
EndParameter
Terminates the parameter begun by 258 after its complete value expression. (259).
BeginLiteral
Begins a typed quoted character sequence. The payload may be empty. Dc 255 protects exactly the next Dc from syntactic interpretation: 255 261 is payload Dc 261 and 255 255 is payload Dc 255. Only an unescaped 261 terminates the literal. Decode escapes once after locating the boundary; payload characters are not implicitly evaluated or reparsed. (260).
EndLiteral
Terminates a literal begun by 260 unless protected by Dc 255 within its payload. (261).
BeginTypeDef
Begin type definition (262).
EndTypeDef
End type definition (263).
TypeString
A specific case of “String” as a format (short-style format ID 80) (264).
LangAssign
void lang.assign([identifier] identifier, [value] value) (268).
Assign
Assignment operator (269).
BeginIdentifier
Begins a nonempty name. Dc 255 protects exactly the following Dc from syntactic interpretation. Only an unescaped 271 terminates the name. The name is data; reference or invocation syntax determines how it is used. (270).
EndIdentifier
Terminates an identifier begun by 270 unless protected by Dc 255 within its payload. (271).
TypeAny
Built-in type identifier: * (Object or any subtype) (275).
ReferenceNamedObject
References the named object with an optional explicit type. Both forms begin with 276 and end with the complete framed identifier. Resolve the reference only in an evaluation context; quoting it does not perform a lookup. (276).
TypeNumber
Built-in type identifier: Number (278).
RoutineInvocation
Invoke the specified routine (unlike lang.invoke, this form of invocation is not shown in the EM source form of the document FIXME: clarify this??) (279).
TypeRoutine
Built-in type identifier: Routine (280).
LocalNode
Next number is a Dc-equivalent reference to a local node/document (296).
BeginAssociativityGroup
Equivalent to an opening parenthesis in many languages or in arithmetic expressions. (298).
EndAssociativityGroup
Equivalent to a closing parenthesis in many languages or in arithmetic expressions. (299).
TypeUnion
Indicates that one or more types are all applicable to the same data. This is a conjunction of constraints (a union of descriptions); it does not mean either type as an alternative. For that, see Dc 516 “Type intersection”. (300).
TypeTransformation
Describes a transformation operation as part of a type description. The first operand is the input type; the second identifies the transformation. Only transformation formats would make sense for the second operand. Describing an operation does not itself execute it. (301).
TypeConversion
Describes a conversion operation from the first operand’s type to the second operand’s type. Conversion may change the representation and may be lossy. Describing an operation does not itself execute it. (302).
TypeTransmutation
Describes reinterpreting a representation of the first operand’s type as the second operand’s type without converting the representation. Describing an operation does not itself execute it. (303).
TypeRoutineName
Subtype of string (306).
LongDc
Used to embed Dcs with short numbers greater than 1,114,111 (the largest, in practice, that EITE would be able to support without needing changes to pack32, I think) into short Dc range. If encountered as a long Dc, it must be escaped with 255 before converting to short Dc, or else it would be lost (if followed by a Dc number) when converting back. (308).
BeginList
Begins an ordered, contiguous, typed homogenous or heterogenous list. (310).
EndList
Terminates a typed list begun by 310. Optionally, a length can be specified, in which case it must have that many elements declared. (311).
ListElementSeparator
Separates elements within a list or sequence. (312).
BeginLegacyKvMap
Legacy ordered key-value associative map. Keys and values alternate with Dc 312 between every operand. The optional length counts pairs. Retained for reading existing documents; new documents should use Dc 559. (313).
EndLegacyKvMap
Terminates a legacy ordered key-value associative map begun by 313. (314).
OptionalPresent
Indicates an optional value is present. (315).
OptionalAbsent
Indicates an optional value is absent. (316).
BeginEnvironmentDescription
Begins an execution environment snapshot. (340).
EndEnvironmentDescription
Terminates an execution environment snapshot. (341).
BeginFileFlagsDescription
Begins a collection of semantic file flags attached to a file. (388).
EndFileFlagsDescription
Terminates a collection of semantic file flags attached to a file. (389).
BeginTimeMoment
Begins a time moment description. (390).
EndTimeMoment
Terminates a time moment description. (391).
BeginDateMagnitude
A positive date duration (393).
EndDateMagnitude
End date magnitude description (394).
BeginDateDuration
Begin date duration description (395).
EndDateDuration
End date duration description (396).
EquivalentRepresentations
Indicates that all values within the list have the same underlying meaning. (397).
BeginFormatRepresentation
E.g. “Here’s a Dc representation of an IPv4 address using the syntax associated with that format Dc” (511).
EndFormatRepresentation
End Dc representation of format (512).
FilePathDelimiter
File path delimiter (513).
BeginKvPair
Begins a key-value pair. Dc 312 separates the nonempty key and value regions; Dc 515 closes the pair. Nested framed data and escaped characters belong to their operand rather than delimiting the enclosing pair. Operand regions retain their historical syntax; this rule does not impose a narrower expression grammar. (514).
EndKvPair
Terminates the key-value pair begun by Dc 514. (515).
TypeIntersection
Indicates that any of multiple types satisfy the type description. See also Dc 300 “Type union”, which indicates that all of multiple types satisfy the type description. (516).
BooleanTrue
Boolean true (517).
BooleanFalse
Boolean false (518).
FormatParamApplication
Applies typed parameter bindings to a format in a format specification expression. (535).
RawFileFlags
Raw file flag bitmask with an unparsed-bits indicator. (539).
ReferenceBoundValue
References a value declared by Dc 269 in the current or nearest enclosing identifier scope. The identifier is name data; evaluating the reference resolves its value. Quoting the reference does not perform lookup. (540).
EnterIdentifierScope
Enters a lexical identifier scope. Inner Dc 269 declarations shadow outer declarations of the same name and may produce warnings. Declarations last only until scope exit and never cross document boundaries by default. (541).
ExitIdentifierScope
Exits the innermost identifier scope and discards its declarations. Outer declarations become visible again. All document-local declarations expire at the end of the document. (542).
BeginChecksummedSection
Begins a delimited section of a document or stream verified by an end checksum. (543).
EndChecksummedSection
Terminates a checksummed section. (544).
SectionDigest
Cryptographic or cyclic redundancy checksum verifying the integrity of the preceding section. (545).
SequenceIdentifier
Monotonically increasing sequence or batch counter. (546).
BeginOperationSession
Begins a record describing the parameters source destination and execution of an operation task or session. (547).
EndOperationSession
Terminates an operation session record. (548).
SourcePath
Path designating a source directory file or origin root of an operation. (549).
DestinationPath
Path designating a target or destination directory file or storage root. (550).
OperationCompleted
Indicates that an operation or session completed its primary intended task. (551).
BeginErrorRecord
Begins a structured error incident record. (552).
EndErrorRecord
Terminates a structured error record. (553).
BeginWarningRecord
Begins a structured warning incident record. (554).
EndWarningRecord
Terminates a structured warning record. (555).
LogMessage
Human-readable explanatory or diagnostic log message. (556).
TraceIdentifier
Identifier correlating related operations log entries or distributed traces. (557).
OperationStatusCode
Numeric status or return code associated with an operation. (558).
BeginKvMap
Begins an ordered key-value associative map of adjacent explicitly closed Dc 514 pairs. No Dc 312 occurs between pairs. The optional length counts pairs. The declared key and value types apply to each pair; inherited declarations must accompany independently extracted fragments. Invalid pair framing must not be reinterpreted as the legacy Dc 313 form. (559).
EndKvMap
Terminates an ordered key-value associative map begun by Dc 559. (560).
PartiallyEquivalentRepresentations
Indicates that the values within the list represent the same entity, but one or more representations are incomplete or lossy compared to the others. (561).
EntityType
Ontological root concept representing a type class or category of entities. (565).
RelationshipType
Ontological concept representing a directed relationship or predicate type. (566).
Relationship
Ontological concept representing a reified relationship or statement instance. (567).
Entity
Ontological concept representing an individual thing or entity. (568).
Replacement
A thing that replaces or supersedes another thing. (569).
Preferred
Qualifier indicating that an option or representation is preferred over alternatives. (570).
Decomposition
A sequence of simpler or constituent elements into which something decomposes. (571).
CanonicalName
The authoritative human-readable name of something. (572).
Description
A human-readable explanation of the meaning or purpose of something. (573).
ProgrammaticIdentifier
An identifier string used to reference something in source code. (574).
Nickname
A short informal name or command-line alias for something. (575).
InformalAlias
An alternative informal name or synonym for something. (576).
FormalAlias
A normative formal name alias for a character. (577).
Annotation
An explanatory note or usage commentary attached to something. (578).
MagicSignature
A signature description or pattern used to identify a data format. (579).
CanonicalCombiningClass
The Unicode Canonical Combining Class value of a character. (580).
BidirectionalClass
The Unicode Bidirectional Class code of a character. (581).
CaseMappingPartner
The casing partner character of a character. (582).
CharacterGeneralCategory
The General Category classification of a character. (583).
HasA
Asserts that the subject possesses the specified attribute component or property noun. (584).
IsEqualTo
Asserts that a property attribute or expression has the specified value. (585).
IsInstanceOf
Asserts that the subject is an instance of the object type. (586).
IsSubtypeOf
Asserts that the subject type or format is a subtype of or logically entails the object type or format. (587).
IsBasedOn
Asserts that the subject is derived from or historically based on the object. (588).
IsDeprecated
Asserts whether the subject is deprecated. (589).
IsClosingDelimiterFor
Asserts that the subject closing delimiter character terminates a syntactic block opened by the object character. (590).
Supersedes
Asserts that the subject statement or revision node supersedes and replaces the object statement or revision node. (591).
Retracts
Asserts that the subject statement node withdraws and retracts the object statement node. (592).
CrossReference
A reference directing attention to another related entity or entry. (593).
SyntaxRule
A pattern or grammar rule defining the valid syntactic structure of something. (594).
DataFormatDescription
A specification or expression describing the format, type, or composition pipeline of data. (595).
CharacterScript
A Dc script classification, as in Unicode, extended for Dc (596).
OperatingSystem
An operating system environment or platform family. (597).
IsAssociatedWith
Asserts that the subject is associated or affiliated with the object. (598).
SelfReference
Placeholder referring to the character or pattern rule currently being defined or matched. (599).
WildcardPattern
Matches any single Dc token or balanced syntactic frame. (600).
PatternConjunction
Matches a Dc sequence only if all of the specified component patterns match. (601).
PatternAlternation
Matches a Dc sequence if any of the specified alternative patterns match. (602).
PatternRepetition
Quantifies a pattern element with an exact repetition count or a Dc 643 count range. (603).
NegatedPattern
Matches any single Dc token or balanced syntactic frame that does not match the specified target pattern or character set. (604).
SubpatternMatch
Matches a sequence of Dcs against a referenced pattern or the syntax rule of a referenced entity or type, rather than matching the referenced identifier literally. (605).
PatternCapture
Matches a pattern element and binds the matched Dc sub-sequence to an identifier for backreference, extraction, or substitution. (606).
PatternReplacement
Pairs a match pattern with a replacement or target Dc expression instantiated from its captured bindings. (607).
DcGeneralCategory
General category as in Unicode, extended for Dc (608).
UnicodeScript
The Unicode Script classification of a character. (609).
HasValue
Asserts that the subject property, attribute statement, or parameter has the specified value. (610).
CanonicalDecomposition
A canonically equivalent decomposition of a character or sequence into a sequence with the same canonical meaning. (611).
CompatibilityDecomposition
A compatibility decomposition of a character into a sequence with equivalent compatibility content. (612).
ApproximateDecomposition
An approximate, non-executable decomposition of a character or type into a roughly corresponding sequence. (613).
SemanticDecomposition
A decomposition of a character into a sequence that approximates it while carrying additional semantic meaning. (614).
EnclosingDocument
Refers to the enclosing document or graph node currently being defined. (615).
EvaluateValueAsAtom
Evaluates or substitutes the following [value] expression in place of itself in an [atom_dc] operand position. (616).
BeginGraphNodeDefinition
Begins a definition of the global graph node identified by the [atom_dc] header token. This creates a document scope, similar to 235 “Begin document”: within the node body, Dc 615 (Enclosing document) refers to this node ID. (617).
EndGraphNodeDefinition
Terminates a graph node definition begun by Dc 617. (618).
GeneralFormatImportSupport
Capability of an application or environment to read, parse, decode, decompress, or execute data in a format or forward transformation in general. (619).
DcFormatImportSupport
Capability of an application or environment to import or convert data from a format into a Dc document representation. (620).
GeneralFormatExportSupport
Capability of an application or environment to write, serialize, encode, compress, or reverse data in a format or transformation in general. (621).
DcFormatExportSupport
Capability of an application or environment to export or convert a Dc document representation into a format. (622).
GeneralFormatTestCoverage
Automated test coverage in an application or environment for general handling of a format or transformation. (623).
DcFormatTestCoverage
Automated test coverage in an application or environment for converting a format to or from Dc documents. (624).
ImplementationSupportLevel
The maturity, completeness, or fidelity level of an implementation or test suite for a capability. (625).
SupportNotApplicable
Indicates that a capability or conversion direction is not applicable to the format. (626).
SupportWorkInProgress
Indicates experimental or work-in-progress implementation or test coverage. (627).
SupportPartial
Indicates support for a subset, basic dialect, or stream-level operation of a format, or partial test coverage. (628).
SupportComplete
Indicates complete implementation of a format or complete semantic conversion to or from Dc syntax. (629).
SupportLosslessRoundtrip
Indicates that conversion preserves all information required for unambiguous bit-for-bit reconstruction. (630).
SupportLosslessStrictValidation
Indicates lossless roundtripping with optional strict structural and semantic validation. (631).
FormatVariationAspect
Property indicating a format variation (.Formats:format_variant) along which a format varies. (632).
DefaultFormatVariant
Property specifying the default variant format used by a format when none is explicitly specified. (633).
DcFormatVariationNickname
Short parameter nickname (such as in ‘@vary_as(“…”)’) used to identify a format variation aspect in parametric format expressions. (634).
CollectiveToolboxSeedGraphDataSource
Property identifying the data source or provenance from which a seed graph statement or node was derived. (635).
CollectiveToolboxDcCsvSeedDatabase
Identifies the Collective Toolbox Dc CSV seed database tables in src/formats/dcdata/data-src/ as a data source. (636).
ManualEntry
General concept of manual entry or direct human authoring. (637).
DistributeStatementOverEach
Evaluates or asserts the first operand ([statement]) once for each element of the second operand, binding Dc 639 (This element) to the current element on each iteration. (638).
ThisElement
Pronoun referring to the element currently being iterated over within an enclosing Dc 638 (Distribute statement over each element) expression. (The Dc is called “This” by analogy to jQuery $(this) in .each(), but maybe there’s a better name for it.) (639).
TypeAtomDc
An unevaluated reference to a single Document Character (or Dc 616 atom expression), denoting the character or graph node itself rather than evaluating its syntax rule. (640).
GlobalGraphSystemBlockMostRecentNodeId
Records the highest allocated System node ID when the document was written. (641).
DataByteLength
Length of a data payload or representation in bytes. (642).
ValueRange
Defines a contiguous range of values of the specified type (or Dc 275 * for an unconstrained range) between a lower endpoint and an upper endpoint. Endpoints are inclusive unless wrapped in Dc 644 (Exclusive range endpoint), or unbounded if Dc 316 (Optional value absent). (643).
ExclusiveRangeEndpoint
Marks a lower or upper endpoint of a Dc 643 (Range) expression as strictly exclusive (open interval bound, excluding the endpoint value itself). (644).
IsStable
Asserts whether the subject identifier, statement, or entity is stable. (645).
InContextOf
Asserts that the subject statement, property, or rule applies within the context or scope of the object entity. (646).
WasmStart
WebAssembly instruction unreachable (opcode 0x00, stack type [t* 1]->[t* 2]). (647).
WasmFbStart
WebAssembly instruction struct.new x (opcode 0xFB 0x00, stack type [t*]->[(ref x)]). (903).
WasmFcStart
WebAssembly instruction i32.trunc_sat_f32_s (opcode 0xFC 0x00, stack type [f32]->[i32]). (1159).
WasmFdPage0Start
WebAssembly instruction v128.load x memarg (opcode 0xFD 0x00, stack type [at]->[v128]). (1415).
WasmFdPage1Start
WebAssembly instruction i8x16.relaxed_swizzle (opcode 0xFD 0x80 0x02, stack type [v128 v128]->[v128]). (1671).
BeginWasmProgram
Begins a WebAssembly program consisting of either an ordered key-value array of program members or a direct sequence of WebAssembly instructions. (1927).
EndWasmProgram
Terminates a WebAssembly program begun by Dc 1927. (1928).
DcDocumentExecutionKernel
Standalone 1-Short-Dc execution supervisor for evaluating, converting, and metering Dc documents without starting the full workspace. (1936).
CollectiveToolboxWorkspace
Top-level 1-Short-Dc workspace bootstrap entry document for the full Collective Toolbox workspace application, delegating document execution and resource accounting to Dc 1936 (Dc document execution kernel). (1937).
ResolveToPin
Evaluates its second operand (and all graph definitions, decompositions, and routines transitively resolved within that evaluation) against the graph snapshot specified by [pin_description]. (1938).
MinimalSystemGraphQuery
Queries the active System graph snapshot (respecting any active pin, or HEAD if unpinned) for verbatim node contents (617 1939).
ExecutePureWasmProgram
Executes a pure Dc-WASM program (1927..1928 or wasm_routine) on the supplied [string] input under the shared task instruction quota, returning the program’s output [string]. (1940).
SectionTimestampNodeCreationTime
Records the creation timestamp of the graph node defined in the enclosing checksummed document section as section metadata covered by the section digest. (1941).
RoutineTestSuite
Property attaching a routine test block (Dc 2206..Dc 2207) of inline input/output contract cases to a routine entity. (1942).
BeginModule
Begins a tokenized module containing an optional namespace declaration, zero or more use imports, and zero or more top-level items. (2192).
EndModule
Terminates a module begun by Dc 2192. (2193).
NamespaceDecl
Declares the PSR-4 module namespace path of the enclosing module. (2194).
BeginUseImport
Imports one or more exported bindings or routines from the specified namespace path. (2195).
EndUseImport
Terminates a use import list begun by Dc 2195. (2196).
UseImportItem
Specifies one imported item (by resolved Dc or source identifier) and an optional local alias identifier. (2197).
DeclareLet
Declares a non-shadowing local mutable variable of the given type, with an optional initial value expression. (2198).
DeclareConst
Declares a private immutable binding with an optional assigned graph Dc identity, static type, name, and initializer expression. (2199).
DeclarePub
Declares an exported module-level immutable binding with an optional assigned graph Dc identity, static type, name, and initializer expression. (2200).
AssignSet
Assigns a new value expression to an existing mutable local variable (with an optional explicit static type matching its declaration). (2201).
TypedValueRef
References a lexically bound variable or constant (by identifier or resolved graph Dc) with an optional explicit static type. (2202).
BeginRoutineDecl
Declares a named routine with a boolean export visibility flag (true for public, false for private), optional assigned graph Dc identity, return type, name, typed parameters, optional test block, and body expression. (2203).
EndRoutineDecl
Terminates a routine declaration begun by Dc 2203. (2204).
RoutineParam
Declares one formal parameter of a routine with its static type and identifier. (2205).
BeginTestBlock
Begins a contract block of one or more inline input/output test cases attached to a routine declaration. (2206).
EndTestBlock
Terminates a routine test block begun by Dc 2206. (2207).
BeginTestCase
Defines one inline routine test case consisting of positional argument expressions, Dc 2209, and the expected output expression (or FaultTrap for expected traps, or absent for void completion). (2208).
TestExpectedOut
Separates positional input argument expressions from the expected output within a Dc 2208 test case. (2209).
EndTestCase
Terminates a routine test case begun by Dc 2208. (2210).
BeginRoutineCall
Invokes an inline routine value or a local or resolved graph routine with zero or more positional argument expressions. (2211).
EndRoutineCall
Terminates a routine call begun by Dc 2211. (2212).
BeginCodeBlock
Evaluates zero or more sequential expressions or local declarations in a new lexical scope, yielding the final expression’s value (or void if empty). (2213).
EndCodeBlock
Terminates a code block begun by Dc 2213. (2214).
BeginTuple
Begins a single n-ary tuple of length $length, declaring its $length slot types followed by $length contiguous ordered slot values separated by Dc 312. (2215).
EndTuple
Terminates an n-ary tuple begun by Dc 2215. (2216).
BeginPositionalStructDecl
Declares an immutable positional struct with a boolean export flag, optional assigned graph Dc identity, name, and one or more positional slot types. (2217).
EndPositionalStructDecl
Terminates a positional struct declaration begun by Dc 2217. (2218).
BeginPositionalStructValue
Evaluates positional slot expressions left-to-right and constructs an instance of the referenced positional struct. (2219).
EndPositionalStructValue
Terminates a positional struct value constructor begun by Dc 2219. (2220).
BeginStagerModule
Begins a tokenized StageR 3 module containing an optional namespace declaration, zero or more use imports, and zero or more top-level items. (2221).
EndStagerModule
Terminates a StageR 3 module begun by Dc 2221. (2222).
DeclareBrandType
Declares a nominal single-type wrapper with export visibility boolean, module-opacity boolean (false for transparent brand, true for module-opaque type), optional assigned graph Dc identity, underlying representation type, and identifier. (2223).
BeginNamedStructDecl
Declares an immutable named-field struct with export visibility boolean, optional assigned graph Dc identity, struct identifier, and one or more named field declarations. (2224).
EndNamedStructDecl
Terminates a named struct declaration begun by Dc 2224. (2225).
NamedStructFieldDecl
Declares one named field of a Dc 2224 struct with its static field type and field identifier. (2226).
BeginNamedStructValue
Evaluates named field initializers in source order and constructs an instance of the referenced named struct. (2227).
EndNamedStructValue
Terminates a named struct value constructor begun by Dc 2227. (2228).
NamedStructFieldInit
Initializes one named field within a Dc 2227 struct value constructor with its field identifier and value expression. (2229).
BeginEnumDecl
Declares a closed nominal tagged-union enum with export visibility boolean, optional assigned graph Dc identity, enum identifier, and zero or more variant declarations. (2230).
EndEnumDecl
Terminates an enum declaration begun by Dc 2230. (2231).
EnumVariantDecl
Declares one variant of a Dc 2230 enum with an optional payload type (absent for unit variants) and variant identifier. (2232).
EnumVariantValue
Constructs a value of the referenced enum with the specified variant identifier and optional payload expression. (2233).
OptionNoneValue
Constructs the absent none variant of option/T for the specified payload type T. (2234).
OptionSomeValue
Constructs the present some variant of option/T for the specified payload type T and payload expression. (2235).
ResultOkValue
Constructs the success ok variant of result/T for the specified success type T and payload expression. (2236).
ResultErrValue
Constructs the failure err variant of result/T for the specified success type T and error-typed operand expression. (2237).
ErrorTagValue
Constructs a structured diagnostic error value identified by its tag identifier. (2238).
QuoteFollowingDcAsAtom
Quotes the single immediately following Document Character as an unnormalized and unevaluated atom without decomposing or evaluating it. (2239).
BeginRoutine
Defines an anonymous inline routine value with its return type, zero or more typed formal parameters, and body expression. (2240).
EndRoutine
Terminates a routine value begun by Dc 2240. (2241).
EnclosingRoutine
Refers to the innermost enclosing routine (Dc 2203..Dc 2204 or Dc 2240..Dc 2241) as the target of a recursive Dc 2211..Dc 2212 routine call. (2242).
IfConditional
Evaluates a boolean condition expression and branches to either the second operand (then) or third operand (else). (2448).
WhileLoop
Repeatedly evaluates the boolean condition expression and executes the void body expression while true. (2449).
ForEach
Iterates over a sequence expression in order, binding a fresh non-shadowing element identifier of the declared type for each iteration of the body expression. (2450).
BreakLoop
Exits the innermost enclosing loop immediately (type Never). (2451).
ContinueLoop
Advances immediately to the next iteration of the innermost enclosing loop (type Never). (2452).
ReturnRoutine
Returns early from the enclosing routine with an optional return value expression (or absent for void routines; type Never). (2453).
FaultTrap
Deterministically aborts execution with an unrecoverable trap (type Never). (2454).
NoOp
Evaluates to the unit value without side effects (type Void). (2455).
BeginMatch
Evaluates a tagged scrutinee expression (enum, option/T, or result/T) and dispatches to the matching Dc 2458 case arm or optional trailing fallback expression. (2456).
EndMatch
Terminates a match expression begun by Dc 2456. (2457).
MatchCaseArm
Defines one variant arm of a Dc 2456 match expression with variant tag identifier, optional payload binding type, optional payload binding identifier, and arm body expression. (2458).
PropagateOp
Unwraps ok/some from a result/T or option/T operand expression, or returns early from the enclosing routine on err/none. (2459).
AddOp
Checked numeric addition of two operands of matching type; faults on overflow. (2512).
SubOp
Checked subtraction of the second operand from the first operand; faults on overflow. (2513).
MulOp
Checked numeric multiplication of two operands of matching type; faults on overflow. (2514).
DivOp
Checked truncated division of the first operand by the second operand; faults on division by zero or signed minimum divided by -1. (2515).
RemOp
Checked truncated remainder of dividing the first operand by the second operand; faults on zero divisor or signed minimum modulo -1. (2516).
NegOp
Checked arithmetic negation of a signed operand; faults on two’s-complement minimum value. (2517).
WrapAddOp
Modular two’s-complement addition wrapping modulo 2^width on fixed-width integers. (2518).
WrapSubOp
Modular two’s-complement subtraction of the second operand from the first operand wrapping modulo 2^width. (2519).
WrapMulOp
Modular two’s-complement multiplication wrapping modulo 2^width on fixed-width integers. (2520).
BitAndOp
Bitwise conjunction of two integer operands of matching type. (2521).
BitOrOp
Bitwise inclusive disjunction of two integer operands of matching type. (2522).
BitXorOp
Bitwise exclusive disjunction of two integer operands of matching type. (2523).
BitNotOp
Bitwise ones’-complement inversion of an integer operand. (2524).
ShlOp
Shifts the first integer operand left by the second u32 bit-count operand; faults if the shift count is greater than or equal to the bit width. (2525).
ShrOp
Shifts the first integer operand right by the second u32 bit-count operand (logical zero-fill on unsigned types, arithmetic sign-extending on signed types); faults if the shift count is greater than or equal to the bit width. (2526).
RotlOp
Bitwise left rotation of the first unsigned integer operand by the second u32 bit-count operand. (2527).
RotrOp
Bitwise right rotation of the first unsigned integer operand by the second u32 bit-count operand. (2528).
ClzOp
Counts leading zero bits in a fixed-width integer operand as a u32. (2529).
CtzOp
Counts trailing zero bits in a fixed-width integer operand as a u32. (2530).
PopcntOp
Counts set one-bits in a fixed-width integer operand as a u32. (2531).
LogicalNotOp
Boolean negation of a boolean operand. (2532).
LogicalAndOp
Short-circuiting boolean conjunction: evaluates the second operand only when the first operand is true. (2533).
LogicalOrOp
Short-circuiting boolean disjunction: evaluates the second operand only when the first operand is false. (2534).
EqOp
Tests whether two operands of matching type are equal (including structural element-wise equality on immutable lists). (2535).
NeOp
Tests whether two operands of matching type are not equal. (2536).
LtOp
Tests whether the first operand is strictly less than the second operand. (2537).
LeOp
Tests whether the first operand is less than or equal to the second operand. (2538).
GtOp
Tests whether the first operand is strictly greater than the second operand. (2539).
GeOp
Tests whether the first operand is greater than or equal to the second operand. (2540).
ConvertOp
Converts the first operand’s numeric value to the target type specified by the second operand (lossless when widening, faulting when outside the target type’s range). (2541).
BitcastOp
Reinterprets the raw bit pattern of the first fixed-width integer operand as a same-width integer of the target type specified by the second operand. (2542).
SeqLenOp
Returns the element count of a sequence or buffer as a u64. (2543).
SeqGetOp
Reads the element of the first sequence/buffer operand at the zero-based u64 index given by the second operand; faults when out of bounds. (2544).
SeqSliceOp
Extracts the half-open sub-sequence [start..end) from the first operand using the second (start) and third (end) u64 index operands; faults unless start <= end <= length. (2545).
SeqConcatOp
Returns a new immutable sequence containing all elements of the first operand followed by all elements of the second operand. (2546).
GetPositionalFieldOp
Projects the zero-based compile-time integer slot index from an n-ary tuple or positional struct. (2547).
WithPositionalFieldOp
Evaluates the base tuple or positional struct expression then the replacement expression, returning a new value with the zero-based slot replaced. (2548).
GetNamedFieldOp
Projects the named field specified by the second identifier operand from the first named-struct expression. (2549).
WithNamedFieldOp
Evaluates the base named-struct expression then the replacement expression, returning a new struct value with the named field replaced. (2550).
WrapNominalOp
Wraps an underlying representation expression into the target brand or in-module opaque nominal type. (2551).
UnwrapNominalOp
Extracts the underlying representation value from a brand or in-module opaque nominal value expression. (2552).
TotalAddOp
Total numeric addition: returns result/T on bounded fixed-width integers (err on overflow) and exact T on arbitrary-precision int and rat. (2553).
TotalSubOp
Total numeric subtraction: returns result/T on bounded fixed-width integers (err on overflow) and exact T on arbitrary-precision int and rat. (2554).
TotalMulOp
Total numeric multiplication: returns result/T on bounded fixed-width integers (err on overflow) and exact T on arbitrary-precision int and rat. (2555).
TotalDivOp
Total numeric division: returns result/T (err on zero divisor, or signed MIN / -1 on fixed-width integers; truncating toward zero on integers, exact reduced quotient on rat). (2556).
TotalModOp
Total Euclidean modulo on integers: returns result/T with remainder r satisfying 0 <= r < |rhs| (err on zero divisor; ok 0 for signed MIN mod -1). (2557).
TotalTruncRemOp
Total truncating remainder on integers: returns result/T matching truncating division (err on zero divisor; ok 0 for signed MIN truncRem -1). (2558).
TotalNegOp
Total arithmetic negation: returns result/T on bounded signed integers (err on two’s-complement MIN) and exact T on int and rat. (2559).
TotalShlOp
Total bitwise left shift of a fixed-width integer by a u32 bit count, returning result/T (err if count >= bit width). (2560).
TotalShrOp
Total bitwise right shift of a fixed-width integer by a u32 bit count (logical on unsigned, arithmetic on signed), returning result/T (err if count >= bit width). (2561).
TotalConvertOp
Converts the first numeric operand to the target type: infallible T when strictly widening, or result/T when narrowing or bounds-checked. (2562).
TotalSeqGetOp
Reads the element of a sequence or buffer at a zero-based u64 index, returning option/Elem (none when out of bounds). (2563).
TotalSeqSliceOp
Extracts half-open sub-sequence [start..end) using u64 indices, returning option/Seq (none unless start <= end <= length). (2564).
TotalBufSetOp
Overwrites a linear un-frozen StageR buffer at a zero-based u64 index, returning result/void (err outOfBounds when index >= length). (2565).
OptionIsSomeOp
Tests whether an option/T operand holds a present some value. (2566).
OptionIsNoneOp
Tests whether an option/T operand is none. (2567).
ResultIsOkOp
Tests whether a result/T operand holds a success ok value. (2568).
ResultIsErrOp
Tests whether a result/T operand holds a failure err value. (2569).
UnwrapOrOp
Evaluates an option/T or result/T expression and a fallback T expression, returning the unwrapped payload or the fallback value. (2570).
OptionOkOrOp
Converts an option/T operand into result/T, mapping some v to ok v and none to err of the second error operand. (2571).
ByteLenOp
Returns the encoded DcMixed payload byte length of an s (DcMst) value as a u64. (2572).
StagelListType
Parameterized immutable value-semantics StageL list type l/T over element type T. (2576).
StagelBufType
Parameterized mutable local StageL buffer type buf/T over element type T for linear-time construction and O(1) indexed updates. (2577).
BeginStagelList
Constructs an immutable StageL list of the specified element type from zero or more evaluated element expressions. (2578).
EndStagelList
Terminates a StageL list constructor begun by Dc 2578. (2579).
StagelBufNew
Allocates an empty mutable StageL buffer of the specified element type with initial u64 capacity given by the second operand. (2580).
StagelBufFill
Allocates a mutable StageL buffer initialized with copies of the first element-value operand repeated to the u64 length given by the second operand. (2581).
StagelBufPush
Appends the second element operand to the end of the first mutable StageL buffer operand in amortized O(1) time; faults if the buffer has been frozen. (2582).
StagelBufExtend
Appends all elements of the second immutable list operand to the end of the first mutable StageL buffer operand; faults if the buffer has been frozen. (2583).
StagelBufSet
Overwrites the element of the first mutable StageL buffer operand at the zero-based u64 index (second operand) with the third operand in O(1) time; faults if out of bounds or frozen. (2584).
StagelBufFreeze
Freezes a mutable StageL buffer into an immutable l/T list in O(1) zero-copy time and marks the buffer handle frozen against subsequent mutation. (2585).
ConvertDcStringToWasm
Compiles the quoted Dc document inside [string] (Dc 260..Dc 261) into an executable WASM program (Dc 1927..Dc 1928) without executing the target program. (2608).
MakeRatOp
Constructs a canonical reduced rational rat from numerator int and denominator int, returning result/rat (err divisionByZero when denominator is 0). (2609).
DcFromU128Op
Constructs a dc Document Character directly from its raw 128-bit numeric identifier (infallible u128 -> dc; all 0..=2^128-1 values, including UTF-16 surrogate codepoints, are valid Document Characters). (2610).
U128FromDcOp
Extracts the raw 128-bit numeric identifier of a dc value as an infallible u128. (2611).
DcsFromSOp
Validates that an s (DcMst) value contains no encapsulated binary runs, returning result/dcs (err invalidEncoding if binary segments are present). (2612).
SFromDcsOp
Widens a pure-character dcs string infallibly into a mixed-mode s (DcMst) string. (2613).
SeqExplodeOp
Splits a sequence (l/T, dcs, or s) around non-overlapping occurrences of the first separator operand, returning l/Seq. (2614).
SeqImplodeOp
Concatenates a list of sequences (l/l/T, l/dcs, or l/s) interspersed with the first separator operand, returning Seq. (2615).
RequestHostCapabilityOp
Requests a host capability payload (l/u8 -> l/u8 in StageL 3, s -> result/s in StageR 3) by yielding to the bootstrap kernel host ABI. (2616).
TypeTuple
Fixed-slot n-ary tuple type parameterized by a Dc 310..Dc 311 list of slot types. (2672).
TypeStruct
References a declared positional or named struct type by identifier or resolved graph Dc. (2673).
TypeOption
Parameterized optional value type option/T with variants none and some T. (2674).
TypeResult
Parameterized fallible result type result/T with variants ok T and err error. (2675).
TypeError
Structured non-panicking StageR diagnostic error value type. (2676).
TypeView
Immutable bounds-checked read-only window handle over a host-managed streaming extent. (2677).
TypeCursor
Immutable value-typed cursor advancing functionally over a host-managed extent view. (2678).
TypeNominal
References a declared StageR brand, module-opaque type, or enum type by identifier or resolved graph Dc. (2679).
Base64Digit
Base64 encapsulation digit character (0..=63).
TypeToken
Built-in type token, format token, or type operator.
EvaluableExpressionStarter
Expression starter token that can be evaluated (.EM Routines, references, invocations, representation sets).
Implementations§
Source§impl DcRole
impl DcRole
Sourcepub fn defining_short(self) -> Option<u32>
pub fn defining_short(self) -> Option<u32>
Returns the defining short Dc ID for this role, if uniquely defined by a single Document Character.
Sourcepub fn defining_dc(self) -> Option<DcChar>
pub fn defining_dc(self) -> Option<DcChar>
Returns the defining DcChar for this role, if uniquely defined by a single Document Character.
Sourcepub fn matches_canonical(self, token: u128) -> bool
pub fn matches_canonical(self, token: u128) -> bool
Returns true if the given canonical token (in global graph u128 layout)
directly matches this role.
Sourcepub fn base64_digit_value(token: u128) -> Option<u8>
pub fn base64_digit_value(token: u128) -> Option<u8>
Returns the Base64 numeral digit value (0..=63) or padding sentinel
(64) if token represents a Base64 encapsulation character.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DcRole
impl<'de> Deserialize<'de> for DcRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for DcRole
impl Eq for DcRole
impl StructuralPartialEq for DcRole
Auto Trait Implementations§
impl Freeze for DcRole
impl RefUnwindSafe for DcRole
impl Send for DcRole
impl Sync for DcRole
impl Unpin for DcRole
impl UnwindSafe for DcRole
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
fn exact_into(self) -> U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);