From 3dfc8f0258ab0884eef50cc8f33b8666cdb4c3cf Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 20 Nov 2023 23:28:40 +0000 Subject: deploy: 4e3898b34a5dbcfabbcf861998d915c261831b60 --- src/llvm_kaleidoscope_rs/lib.rs.html | 239 +++++++++++++++++------------------ 1 file changed, 119 insertions(+), 120 deletions(-) (limited to 'src/llvm_kaleidoscope_rs/lib.rs.html') diff --git a/src/llvm_kaleidoscope_rs/lib.rs.html b/src/llvm_kaleidoscope_rs/lib.rs.html index acd8915..938b2ac 100644 --- a/src/llvm_kaleidoscope_rs/lib.rs.html +++ b/src/llvm_kaleidoscope_rs/lib.rs.html @@ -1,115 +1,115 @@ -lib.rs - source
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
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-
use std::convert::TryFrom;
+lib.rs - source
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
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+
use std::convert::TryFrom;
 
 pub mod codegen;
 pub mod lexer;
@@ -122,7 +122,7 @@
 /// Small C string on the stack with fixed size [`SMALL_STR_SIZE`].
 ///
 /// This is specially crafted to interact with the LLVM C API and get rid of some heap allocations.
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq)]
 pub struct SmallCStr([u8; SMALL_STR_SIZE]);
 
 impl SmallCStr {
@@ -164,12 +164,12 @@
     B(B),
 }
 
-#[cfg(test)]
+#[cfg(test)]
 mod test {
     use super::{SmallCStr, SMALL_STR_SIZE};
     use std::convert::TryInto;
 
-    #[test]
+    #[test]
     fn test_create() {
         let src = "\x30\x31\x32\x33";
         let scs = SmallCStr::new(&src).unwrap();
@@ -183,7 +183,7 @@
         );
     }
 
-    #[test]
+    #[test]
     fn test_contain_null() {
         let src = "\x30\x00\x32\x33";
         let scs = SmallCStr::new(&src);
@@ -194,7 +194,7 @@
         assert_eq!(scs, None);
     }
 
-    #[test]
+    #[test]
     fn test_too_large() {
         let src = (0..SMALL_STR_SIZE).map(|_| 'a').collect::<String>();
         let scs = SmallCStr::new(&src);
@@ -205,7 +205,7 @@
         assert_eq!(scs, None);
     }
 
-    #[test]
+    #[test]
     fn test_try_into() {
         let src = "\x30\x31\x32\x33";
         let scs: Result<SmallCStr, ()> = src.try_into();
@@ -220,5 +220,4 @@
         assert!(scs.is_err());
     }
 }
-
-
\ No newline at end of file + \ No newline at end of file -- cgit v1.2.3