fn opt(mut self) -> ComponentScannerOpt<Self, Self::Item>
    where
        Self: Sized,
    {
        let first = self.scan(None);
        ComponentScannerOpt {
            scanner: self,
            current: 0,
            next: first,
        }
    }
/// Converts this ComponentScanner into one that exists for all indexes and instead returns
/// Some(Item) if it exists and None otherwise.
Converts this ComponentScanner into one that exists for all indexes and instead returns
Some(Item) if it exists and None otherwise.
Converts this ComponentScanner into one that exists for all indexes and instead returns Some ( Item ) if it exists and None otherwise .
fn opt(mut self) -> ComponentScannerOpt<Self, Self::Item>
    where
        Self: Sized,
    {
        let first = self.scan(None);
        ComponentScannerOpt {
            scanner: self,
            current: 0,
            next: first,
        }
    }
fn opt ( mut self ) -> ComponentScannerOpt < Self , Self :: Item > where Self : Sized , { let first = self . scan ( None ) ; ComponentScannerOpt { scanner : self , current : 0 , next : first , } }
Converts this ComponentScanner into one that exists for all indexes and instead returns
Some(Item) if it exists and None otherwise.
Converts this ComponentScanner into one that exists for all indexes and instead returns Some ( Item ) if it exists and None otherwise .
mut self
mut self