1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pub mod terminate; pub use terminate::terminate; crate::r#struct!( #[derive(Debug)] pub struct String { content: [char; 256], } ); impl String { pub fn from_pointer(_: *const u8) -> Self { String { content: ['\0'; 256], } } }