/// Returns an [`Block`] representing the plain course of this method
Returns an [`Block`] representing the plain course of this method
Returns an [ ` Block ` ] representing the plain course of this method
pub fn plain_course(&self) -> Block<RowAnnot> {
        // Create a copy of `self.first_lead` where each row is also annotated by its index within
        // this lead
        let first_lead_with_indices = self
            .first_lead
            // We use `as_deref` to convert `&Option<String>` to `Option<&str>`
            .clone_map_annots_with_index(|i, label| RowAnnot::new(i, label.as_deref()));
        // Start with the first lead, and repeatedly add leads until we get back to rounds
        let mut plain_course = first_lead_with_indices;
        while !plain_course.leftover_row().is_rounds() {
            plain_course.extend_from_within(0..self.lead_len());
        }
        plain_course
    }
pub fn plain_course ( & self ) -> Block < RowAnnot > { // Create a copy of `self.first_lead` where each row is also annotated by its index within // this lead let first_lead_with_indices = self . first_lead // We use `as_deref` to convert `&Option<String>` to `Option<&str>` . clone_map_annots_with_index ( | i , label | RowAnnot :: new ( i , label . as_deref ( ) ) ) ; // Start with the first lead, and repeatedly add leads until we get back to rounds let mut plain_course = first_lead_with_indices ; while ! plain_course . leftover_row ( ) . is_rounds ( ) { plain_course . extend_from_within ( 0 .. self . lead_len ( ) ) ; } plain_course }
Returns an [`Block`] representing the plain course of this method
Returns an [ ` Block ` ] representing the plain course of this method
&self