Module phile::util
[−]
[src]
The util
module provides various useful helper functions,
types and macros, used extensively throughout the PHiLe
source tree. Generic reference-counted smart pointers,
string manipulation specific to the syntax of PHiLe, and
commonly-used constants are all part of this file.
Structs
Diagnostic |
A string which, when |
PackageInfo |
Type of a global descriptor that holds information about the current version of the PHiLe package (library and compiler). The purpose of a global instance of this struct is to provide user-readable version information in a uniform manner throughout the code base, and for potential 3rd-party tooling. |
RcCell |
A reference counted, dynamically borrow checked smart pointer.
Like |
WkCell |
Weak counterpart of |
Enums
DiagnosticKind |
Used for distinguishing between the types of diagnostic that the compiler can emit. |
Statics
PACKAGE_INFO |
Holds metadata about the PHiLe package as defined in the Cargo manifest. |
Traits
SkipN |
Extends iterators with the |
Functions
grapheme_count |
Returns the number of extended grapheme clusters in |
grapheme_count_by |
Counts the grapheme clusters in a string that satisfy a condition. |