pub struct PitchSetNeighborhood {
pub space: PitchSetSpace,
pub move_policy: PitchSetMovePolicy,
}Expand description
Graph builder for pitch-set neighborhoods.
Fields§
§space: PitchSetSpaceNode universe.
move_policy: PitchSetMovePolicyEdge policy.
Implementations§
Source§impl PitchSetNeighborhood
impl PitchSetNeighborhood
Sourcepub fn new(space: PitchSetSpace, move_policy: PitchSetMovePolicy) -> Self
pub fn new(space: PitchSetSpace, move_policy: PitchSetMovePolicy) -> Self
Create a pitch-set neighborhood graph builder.
Sourcepub fn materialize(
self,
control: SearchControl,
) -> Result<Graph<PitchClassMask, i64>, PitchSetGraphError>
pub fn materialize( self, control: SearchControl, ) -> Result<Graph<PitchClassMask, i64>, PitchSetGraphError>
Materialize the neighborhood as an undirected graph.
Open enumeration is charged against SearchControl::max_work and
SearchControl::max_results; every accepted node and edge consumes one
unit of work.
Trait Implementations§
Source§impl Clone for PitchSetNeighborhood
impl Clone for PitchSetNeighborhood
Source§fn clone(&self) -> PitchSetNeighborhood
fn clone(&self) -> PitchSetNeighborhood
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PitchSetNeighborhood
Source§impl Debug for PitchSetNeighborhood
impl Debug for PitchSetNeighborhood
impl Eq for PitchSetNeighborhood
Source§impl Hash for PitchSetNeighborhood
impl Hash for PitchSetNeighborhood
Source§impl PartialEq for PitchSetNeighborhood
impl PartialEq for PitchSetNeighborhood
impl StructuralPartialEq for PitchSetNeighborhood
Auto Trait Implementations§
impl Freeze for PitchSetNeighborhood
impl RefUnwindSafe for PitchSetNeighborhood
impl Send for PitchSetNeighborhood
impl Sync for PitchSetNeighborhood
impl Unpin for PitchSetNeighborhood
impl UnsafeUnpin for PitchSetNeighborhood
impl UnwindSafe for PitchSetNeighborhood
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more