Browse Source

add a tiny bit of docs

Lucas Stadler 10 years ago
parent
commit
6463f6a53c
2 changed files with 7 additions and 0 deletions
  1. 5 0
      rust/dpll/src/cnf.rs
  2. 2 0
      rust/dpll/src/lib.rs

+ 5 - 0
rust/dpll/src/cnf.rs

@ -1,3 +1,8 @@
1
//! The cnf library provides facilities to work with CNF formulas.
2
//!
3
//! `CNF` stands for conjunctive normal form, i.e. a logic formula that
4
//! consists of a conjunction of disjunctions.
5
1 6
 pub struct CNF {
2 7
	  pub num_vars: u32,
3 8
	  pub num_clauses: u32,

+ 2 - 0
rust/dpll/src/lib.rs

@ -1 +1,3 @@
1
//! This is a tiny library for building a SAT solver in Rust.
2
1 3
pub mod cnf;