fn index_of<J: IntoJob<C, E> + PartialEq>(&self, job: &J) -> Option<usize> {
        for (idx, entry) in self.jobs.iter().enumerate() {
            if let Some(existing_job) = entry.job.downcast_ref::<J>() {
                if job == existing_job {
                    return Some(idx);
                }
            }
        }

        None
    }
/// Checks for a matching entry in `self.jobs` and returns its index.
Checks for a matching entry in `self.jobs` and returns its index.
Checks for a matching entry in ` self . jobs ` and returns its index .
fn index_of<J: IntoJob<C, E> + PartialEq>(&self, job: &J) -> Option<usize> {
        for (idx, entry) in self.jobs.iter().enumerate() {
            if let Some(existing_job) = entry.job.downcast_ref::<J>() {
                if job == existing_job {
                    return Some(idx);
                }
            }
        }
        None
    }
fn index_of < J : IntoJob < C , E > + PartialEq > ( & self , job : & J ) -> Option < usize > { for ( idx , entry ) in self . jobs . iter ( ) . enumerate ( ) { if let Some ( existing_job ) = entry . job . downcast_ref :: < J > ( ) { if job == existing_job { return Some ( idx ) ; } } } None }
Checks for a matching entry in `self.jobs` and returns its index.
Checks for a matching entry in ` self . jobs ` and returns its index .
&self
job
&J