1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Assertion module providing condition checking functionality
//!
//! This module provides functions for condition checking and program termination.
pub use crate;
/// Function to check a condition and terminate the program if it fails
///
/// # Arguments
/// * `cond` - The condition to check
///
/// # Examples
/// ```
/// use mu_lib::assert::assert;
///
/// assert!(1 + 1 == 2);
/// ```
/// Function to immediately terminate the program
///
/// # Examples
/// ```
/// use mu_lib::assert::exit;
///
/// exit();
/// ```