Struct bellframe::method::Method [−][src]
pub struct Method { /* fields omitted */ }
Expand description
The definition of a ‘method’ within Change Ringing. This struct follows quite a loose
definition, which allows the Method
struct to represent things that may not count as methods
(as determined by the Framework). Essentially, a Method
consists of a Block
which is
intended to be rung as a repeating unit (usually a ‘lead’), along with names for specific
locations within this Block
. Calls can then be attached to these locations (by name), and
thus the single lead can be modified to determine the effect of calls in a general way. This
follows how complib.org’s composition input works.
Implementations
Creates a new Method
given its name and a Block
pub fn from_place_not_string(
name: String,
stage: Stage,
place_notation: &str
) -> Result<Self, PnBlockParseError>
[src]
pub fn from_place_not_string(
name: String,
stage: Stage,
place_notation: &str
) -> Result<Self, PnBlockParseError>
[src]Parses a place notation string and creates a Method
with that place notation and no lead
locations.
Creates a new Method
from some place notation, adding a lead end annotation.
Returns an AnnotBlock
of the first lead of this Method
pub fn course_iter(&self, starting_row: Row) -> CourseIter<'_>ⓘNotable traits for CourseIter<'m>
impl<'m> Iterator for CourseIter<'m> type Item = (usize, Option<&'m str>, Row);
[src]
pub fn course_iter(&self, starting_row: Row) -> CourseIter<'_>ⓘNotable traits for CourseIter<'m>
impl<'m> Iterator for CourseIter<'m> type Item = (usize, Option<&'m str>, Row);
[src]Generates a new CourseIter
which generates an infinite course of this Method
,
starting at a given starting_row
.
Returns an AnnotBlock
representing the plain course of this method
pub fn plain_course_iter(&self) -> CourseIter<'_>ⓘNotable traits for CourseIter<'m>
impl<'m> Iterator for CourseIter<'m> type Item = (usize, Option<&'m str>, Row);
[src]
pub fn plain_course_iter(&self) -> CourseIter<'_>ⓘNotable traits for CourseIter<'m>
impl<'m> Iterator for CourseIter<'m> type Item = (usize, Option<&'m str>, Row);
[src]Generates a new CourseIter
which generates the plain course of this Method
forever.
Sets or clears the label at a given index, panicking if the index is out of range
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Method
impl UnwindSafe for Method
Blanket Implementations
Mutably borrows from an owned value. Read more