Crate claudiofsr_lib

Crate claudiofsr_lib 

Source

Modules§

match_cast
svec

Macros§

match_cast
Match through different types.
svec
Create a Vec<String> from Vec<&str>.

Structs§

ChunksAtMost
SkipLastIterator
An iterator that skips the last element of the underlying iterator.
UniqueIterator
An iterator that yields only the unique elements from an underlying iterator, preserving the order in which they first appear.
XorShiftRng
A simple, fast Pseudo-Random Number Generator (PRNG) using the xorshift* algorithm. This provides better statistical properties than a simple Linear Congruential Generator (LCG).

Enums§

FormatStyle

Constants§

BASE_CALC_SOMA
Valores de 101 a 199
CFOP_DE_EXPORTACAO
CFOP de Exportação:
CFOP_VENDA_DE_IMOBILIZADO
CODIGO_DA_NATUREZA_BC
Valores de 1 a 18
CSTS_NAO_TRIBUTADOS
CST_ALL
Valores de 1 a 99
CST_CREDITO
CST_CREDITO_BASICO
CST_CREDITO_PRESUMIDO
CST_RECEITA_BRUTA
Valores de 1 a 9 e 49
PATTERN

Statics§

OUTRAS_RECEITAS_REGEX

Traits§

BTreeSetExtension
Trait extension for BTreeSet
BytesExtension
Byte slice &[u8] extension.
Colors
FileExtension
Extension trait adding utility methods for file manipulation.
FloatIterExt
Find the maximum value of Vec<f64>.
FormattableNumber
HashSetExtension
Trait extension for HashSet
IntegerDigits
A trait to extend integer types and their options with visual digit counting capabilities.
IntegerIterExt
Find the maximum value of Vec<u32>.
IteratorBack
The IteratorBack trait provides extension methods for iterators to skip a specified number of elements from their end.
IteratorExt
Extension trait for iterators, providing additional functionality.
OperationsExtension
Add operations: x += y, x -= y, x *= y and x /= y.
OptionExtension
Adds some methods to the Option<T>.
Partition
Partition into unique and duplicate slice elements.
PrintWithSpaces
Print Extension with Debug
ResultExt
Result Extension
RoundFloat
Round floating numbers (f32 or f64)
Shuffle
A trait for shuffling mutable slices in place.
SliceExtension
Trait extension for Slice
StrExtension
Trait extension for &str or String
StringExtension
Trait extension for String
TryConvertExtension
Try Convert Extension
U8Extension
u8 Extension
UniqueElements
A trait for extracting unique elements from a vector.

Functions§

array_to_vec
convert array: [T; N] to Vec<Option<U>>
blake3_hash
Calculates the Blake3 hash from Path.
clear_terminal_screen
Clear (wipe) the terminal screen
digit_count
A convenience function to count digits.
get_naive_date
Gets Date from a string containing 8 digits.
get_naive_date_v2
Gets Date from a string containing 8 digits.
get_progressbar
Command line progress with indicatif ProgressBar
get_style
Genarate ProgressStyle by template and progress characters.
my_print
Print to file and to stdout
open_file
Opens a file at the specified path.
print_slice_divided_by_n_subsets
Print slice divided by n subsets
print_split
Split a slice into smaller slices of size N.
rand
Generate random numbers without external dependencies
random_in_range
Generates a random integer within a given range [min, max] (inclusive).
split_and_insert
Função auxiliar para inserir os pontos de milhar.
string_to_vec_of_integers
Convert a string of digits to a vector of digits Vec<u32>
thousands_separator
Formats a numeric value into a string with thousands separators and a specific number of decimal places.
to_vec_slice
Convert Vec<String> to Vec<&str>
to_vec_string
Convert Vec<&str> to Vec<String>
try_convert
Generic numeric conversion.

Type Aliases§

MyError
MyResult