Struct notation_fretted::hand::HandShape6
source · pub struct HandShape6 {
pub barre: Option<u8>,
pub frets: [Option<u8>; 6],
pub fingers: [Option<Finger>; 6],
}
Fields§
§barre: Option<u8>
§frets: [Option<u8>; 6]
§fingers: [Option<Finger>; 6]
Implementations§
source§impl HandShape6
impl HandShape6
pub fn new_barre( barre: u8, frets: [Option<u8>; 6], fingers: [Option<Finger>; 6] ) -> Self
pub fn new(frets: [Option<u8>; 6], fingers: [Option<Finger>; 6]) -> Self
pub fn barre(&self) -> u8
pub fn string_fret(&self, string: u8) -> Option<u8>
pub fn string_fret_with_barre(&self, string: u8) -> Option<u8>
pub fn max_fret(&self) -> u8
pub fn max_fret_with_barre(&self) -> u8
Trait Implementations§
source§impl Clone for HandShape6
impl Clone for HandShape6
source§fn clone(&self) -> HandShape6
fn clone(&self) -> HandShape6
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HandShape6
impl Debug for HandShape6
source§impl Default for HandShape6
impl Default for HandShape6
source§impl<'de> Deserialize<'de> for HandShape6
impl<'de> Deserialize<'de> for HandShape6
source§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
source§impl Display for HandShape6
impl Display for HandShape6
source§impl PartialEq<HandShape6> for HandShape6
impl PartialEq<HandShape6> for HandShape6
source§fn eq(&self, other: &HandShape6) -> bool
fn eq(&self, other: &HandShape6) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.