var searchIndex = {}; searchIndex["strider"] = {"doc":"**useful for stepping (variable step) a window (variable size)\nthrough a streaming (possibly infinite)\nseries of values [while avoiding\nunnecessary memory allocations](https://snd.github.io/strider/strider/index.html#memory)**","items":[[3,"SliceRingImpl","strider","readable area starts at `first_readable` and goes until\n`next_writable`.\n`next_writable` is one after the last readable and not readable.",null,null],[12,"first_readable","","index into `buf` of the first element that could be read.\nonly gets incremented, never decremented.\nwraps around.",0,null],[12,"next_writable","","index into `buf` where the next element could we written.\nonly gets incremented, never decremented.\nwraps around at `buf.cap()`.",0,null],[12,"buf","","",0,null],[8,"SliceRing","","ringbuffer operations on slices",null,null],[10,"push_many_back","","appends `values` to the back of this ring.",1,null],[10,"drop_many_front","","removes `count` elements from the front of this ring.\nreturns how many elements were removed.\nreturns less than `count` if less elements are present\nin this ring.",1,null],[10,"read_many_front","","copies the first `output.len()` elements present in this ring\ninto `output`.\nreturns how many elements were copied.\nreturns less than `output.len()` if there are less elements present\nin this ring.",1,null],[11,"new","","creates an empty `SliceRingImpl`.",0,{"inputs":[],"output":{"name":"sliceringimpl"}}],[11,"with_capacity","","creates an empty `SliceRingImpl` with space for at least `n` elements.",0,{"inputs":[{"name":"usize"}],"output":{"name":"sliceringimpl"}}],[11,"cap","","",0,null],[11,"capacity","","",0,null],[11,"is_continuous","","",0,null],[11,"len","","returns the number of elements in the `SliceRingImpl`",0,null],[11,"wrap_add","","returns the index into the underlying buffer\nfor a given logical element\nindex + addend",0,null],[11,"handle_cap_increase","","this is the most complex part\nFrobs the head and tail sections around to handle the fact that we\njust reallocated. Unsafe because it trusts old_cap.",0,null],[11,"push_many_back","","",0,null],[11,"drop_many_front","","",0,null],[11,"read_many_front","","",0,null],[14,"test_slice_ring!","","macro containing a test run that is used to test and benchmark\ndifferent implementations of the `SliceRing` trait",null,null]],"paths":[[3,"SliceRingImpl"],[8,"SliceRing"]]}; initSearch(searchIndex);