pub struct IteratorBorrow {
pub iterator: String,
pub container: String,
pub iterator_scope: usize,
pub container_scope: usize,
pub line: usize,
}Expand description
Track iterator borrows from containers
Fields§
§iterator: StringThe iterator variable (e.g., “it”)
container: StringThe container it borrows from (e.g., “vec”)
iterator_scope: usizeScope level where the iterator was declared
container_scope: usizeScope level where the container was declared
line: usizeLine number for error reporting
Trait Implementations§
Source§impl Clone for IteratorBorrow
impl Clone for IteratorBorrow
Source§fn clone(&self) -> IteratorBorrow
fn clone(&self) -> IteratorBorrow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IteratorBorrow
impl RefUnwindSafe for IteratorBorrow
impl Send for IteratorBorrow
impl Sync for IteratorBorrow
impl Unpin for IteratorBorrow
impl UnwindSafe for IteratorBorrow
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