pub enum Variant {
Monoscale,
Multiscale {
scale: f64,
handedness: Handedness,
pfret: f64,
},
}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
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§
Source§impl Variant
impl Variant
pub fn multi() -> Self
Sourcepub fn scale(&self) -> Option<f64>
pub fn scale(&self) -> Option<f64>
Return the treble side scale length if the neck is Multiscale, or else
None
Sourcepub fn handedness(&self) -> Option<Handedness>
pub fn handedness(&self) -> Option<Handedness>
Returns whether the resulting neck is right or left handed, or None if
the neck is Monoscale
Trait Implementations§
impl Copy for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more