pub fn with_lead_end(name: String, block: &PnBlock) -> Self {
        let mut first_lead: Block<Option<String>> = block.to_block_from_rounds();
        *first_lead.get_annot_mut(first_lead.len() - 1).unwrap() = Some(LABEL_LEAD_END.to_owned());
        Self::with_name(name, first_lead)
    }
/// Creates a new `Method` from some place notation, adding a lead end annotation.
Creates a new `Method` from some place notation, adding a lead end annotation.
Creates a new ` Method ` from some place notation adding a lead end annotation .
pub fn with_lead_end(name: String, block: &PnBlock) -> Self {
        let mut first_lead: Block<Option<String>> = block.to_block_from_rounds();
        *first_lead.get_annot_mut(first_lead.len() - 1).unwrap() = Some(LABEL_LEAD_END.to_owned());
        Self::with_name(name, first_lead)
    }
pub fn with_lead_end ( name : String , block : & PnBlock ) -> Self { let mut first_lead : Block < Option < String > > = block . to_block_from_rounds ( ) ; * first_lead . get_annot_mut ( first_lead . len ( ) - 1 ) . unwrap ( ) = Some ( LABEL_LEAD_END . to_owned ( ) ) ; Self :: with_name ( name , first_lead ) }
Creates a new `Method` from some place notation, adding a lead end annotation.
Creates a new ` Method ` from some place notation adding a lead end annotation .
name
String
block
&PnBlock
name
String
block
&PnBlock