aoc_utility 0.1.3

This is Advent of Code Utility for parsing daily input
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 9 items with examples
  • Size
  • Source code size: 22.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 492.21 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 29s Average build duration of successful builds.
  • all releases: 29s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Nikolas-Pensyl

AOC_Utility

AOC_Utility is a Rust utility library made for advent of code. This utility is not made of solutions but rather tools to remove tasks that are repeated on a consistent basis.

Available Functions

pub fn split_words(s: &String) -> Vec<&str>

pub fn split_lines(s: &String) -> Vec<&str>

pub fn split_char(s: &String, split_c: char) -> Vec<&str>

pub fn vec_str_to_ints(str_vec: &Vec<&str>) -> Vec<usize>

Documentation

pub fn split_words(s: &String) -> Vec<&str>

This function takes in a reference to a string. Then it splits the string into splices by delimiting based on spaces. All spaces are removed no matter the amount of spaces between words.

pub fn split_lines(s: &String) -> Vec<&str>

This function takes in a reference to a string. Then it splits the string into splices by delimiting based on \n, new lines. All new lines are removed no matter the amount of new lines between lines.