Compresses the given text using the LZ77 algorithm. # Arguments `text` - The string to be compressed # Returns A vector of `Token`s representing the compressed data # Examples ``` use the_algorithms_rust::compression::LZ77Compressor; let compressor = LZ77Compressor::new(13, 6); let compressed = compressor.compress("ababcbababaa"); assert_eq!(compressed.len(), 5); ```
(&self, text: &str)
source not stored for this graph (policy: none)