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

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

The overall transposing effect of one lead of this Method.

How many Rows are in a single lead of this Method?

Gets the Stage of this Method

Gets the name of this Method

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

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

Returns the label at a given index, panicking if the index is out of range

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.