//! //! codesort sorts code, either as a command line tool, usually integrated //! in an IDE or a text editor, or as a library. //! //! ```rust //! use codesort::{LocList, Language}; //! let input = r#" //! pub enum ContentSearchResult { //! /// the file wasn't searched because it's binary or too big //! NotSuitable, //! /// the needle has been found at the given pos //! Found { //! pos: usize, //! }, //! /// the needle hasn't been found //! NotFound, // no match //! } //! "#; //! //! let output = r#" //! pub enum ContentSearchResult { //! /// the needle has been found at the given pos //! Found { //! pos: usize, //! }, //! /// the needle hasn't been found //! NotFound, // no match //! /// the file wasn't searched because it's binary or too big //! NotSuitable, //! } //! "#; //! //! let mut list = LocList::read_str(input, Language::Rust).unwrap(); //! list.sort_around_line_index(5).unwrap(); //! assert_eq!(list.to_string(), output); //! ``` mod analyzers; mod brace_stack; mod error; mod focused; mod gifts; mod line_number; mod loc; mod loc_list; mod spacing; pub use { analyzers::*, brace_stack::*, error::*, focused::*, gifts::*, line_number::*, loc::*, loc_list::*, spacing::*, };