pub struct KeyRange { /* private fields */ }
Expand description
Range of free keys that may be assigned to tokens.
Implementations§
source§impl KeyRange
impl KeyRange
sourcepub fn next(&mut self) -> Key
pub fn next(&mut self) -> Key
Get the next trace Key.
Panics if all of the keys in this range have been used.
sourcepub fn peek(&mut self) -> Key
pub fn peek(&mut self) -> Key
Peek at the next trace Key.
Panics if all of the keys in this range have been used.
sourcepub fn advance_by(&mut self, u: usize)
pub fn advance_by(&mut self, u: usize)
Advances the range forward by the provided offset.
Panics if the provided offset cannot be cast to u32.
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyRange
impl<'de> Deserialize<'de> for KeyRange
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for KeyRange
impl Send for KeyRange
impl Sync for KeyRange
impl Unpin for KeyRange
impl UnwindSafe for KeyRange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more