Trait music_theory::theory::traits::AsSubs

source ·
pub trait AsSubs
where Self: Sized,
{ // Required method fn as_subs(&self, max_len: Option<usize>) -> Vec<Self>; }
Expand description

The ability to generate subs sets of it’s self.

Required Methods§

source

fn as_subs(&self, max_len: Option<usize>) -> Vec<Self>

Generate all subs sets with optional maximal subset length. The output size of this grows really fast with the input size so be aware: 2, 5, 16, 65, 326, 1957, 13700, 109601, 986410, 9864101, 108505112.

Object Safety§

This trait is not object safe.

Implementors§