Crate mm0_util[−][src]
Utilities, mainly path manipulation with some newtype definitions.
The types Position
and Range
will be different depending on whether
the server
feature is enabled.
Macros
const_panic | Does the same as |
let_unchecked |
let_unchecked!(x as p = e) is the same as |
unwrap_unchecked | Like |
Structs
ArcList | A linked list data structure based on |
ArcListIter | An iterator over an |
ArcString | Newtype for an |
AtomId | An index into a |
AtomVec | A vector wrapper with a strongly typed index interface. |
CURRENT_DIR | A |
FileRef | A reference to a file. It wraps an |
FileSpan | A span paired with a |
LinedString | Wrapper around std’s String which stores data about the positions of any newline characters. |
Modifiers | Visibility and sort modifiers for Sort statements and Declarations. |
Position | Position in a text document expressed as zero-based line and character offset. A position is between two characters like an ‘insert’ cursor in a editor. |
Range | A range in a text document expressed as (zero-based) start and end positions. A range is comparable to a selection in an editor. Therefore the end position is exclusive. |
SliceUninit | A way to initialize a |
SortId | An index into a |
SortVec | A vector wrapper with a strongly typed index interface. |
Span | Points to a specific region of a source file by identifying the region’s start and end points. |
StackList | A structure that allows constructing linked lists on the call stack. |
TermId | An index into a |
TermVec | A vector wrapper with a strongly typed index interface. |
ThmId | An index into a |
ThmVec | A vector wrapper with a strongly typed index interface. |
Enums
Prec | A precedence literal, such as |
Constants
APP_PREC | The precedence of application, |
Traits
CondvarExt | Extension trait for |
HashMapExt | Extension trait for |
MutexExt | Extension trait for |
RcExt | Extension trait for |
SliceExt | Extension trait for |
Functions
get_memory_usage | Try to get total memory usage (stack + data) in bytes using the |
u32_as_usize | Converts |
Type Definitions
BoxError | Newtype for |