codebiber 0.1.0

Library for mixing handwritten and autogenerated code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Section<'a>
{
  HANDWRITTEN(&'a str),
  CODEGEN{identifier: &'a str, code: &'a str, checksum: Option<crc32::Hash>, begin: Marker<'a>, end: Marker<'a>},
}

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Marker<'a>
{
  pub indentation: Indentation,
  pub before_marker: &'a str,
  pub after_marker: &'a str,
}

pub type Section_List<'a> = Vec<Section<'a>>;
use crate::indentation::Indentation;
use crate::crc32;