Enum fretboard_layout::Variant
source · [−]pub enum Variant {
Monoscale,
Multiscale(f64, Handedness),
}
Expand description
Whether to output a traditional Monoscale
style neck with the same scale
across it’s entire width, or a modern Multiscale
neck, with a shorter scale
along the treble side, also known as fan fret.
Variants
Monoscale
A traditional fretbaord where the same scale length is used all of the way across the fretboard.
Multiscale(f64, Handedness)
Tuple Fields
0: f64
The scale length along the treble side of the neck
1: Handedness
Right or left handed output
A modern style of neck where there is a longer scale length along the bass side of the neck and a shorter scale along the treble side of the neck, allowing for more natural string tension, greater flexibility in tuning, and better ergonomics.
Implementations
Return the treble side scale length if the neck is Multiscale
, or else
None
Returns whether the resulting neck is right or left handed, or None
if
the neck is Monoscale
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl UnwindSafe for Variant
Blanket Implementations
Mutably borrows from an owned value. Read more