Skip to main content

luaur_analysis/methods/
constraint_list_begin.rs

1use crate::records::constraint_list::ConstraintList;
2use crate::records::iterator::Iterator;
3use core::ptr::NonNull;
4
5impl ConstraintList {
6    pub fn begin(&mut self) -> Iterator {
7        let mut iter = Iterator {
8            cl: NonNull::new(self as *mut ConstraintList as *mut ConstraintList).unwrap(),
9            index: 0,
10        };
11        iter.advance_until_present_or_end();
12        iter
13    }
14}