Struct notation_fretted::hand::HandShape4
source · pub struct HandShape4 {
pub barre: Option<u8>,
pub frets: [Option<u8>; 4],
pub fingers: [Option<Finger>; 4],
}
Fields§
§barre: Option<u8>
§frets: [Option<u8>; 4]
§fingers: [Option<Finger>; 4]
Implementations§
source§impl HandShape4
impl HandShape4
pub fn new_barre( barre: u8, frets: [Option<u8>; 4], fingers: [Option<Finger>; 4] ) -> Self
pub fn new(frets: [Option<u8>; 4], fingers: [Option<Finger>; 4]) -> 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 HandShape4
impl Clone for HandShape4
source§fn clone(&self) -> HandShape4
fn clone(&self) -> HandShape4
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 HandShape4
impl Debug for HandShape4
source§impl Default for HandShape4
impl Default for HandShape4
source§impl<'de> Deserialize<'de> for HandShape4
impl<'de> Deserialize<'de> for HandShape4
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 HandShape4
impl Display for HandShape4
source§impl PartialEq<HandShape4> for HandShape4
impl PartialEq<HandShape4> for HandShape4
source§fn eq(&self, other: &HandShape4) -> bool
fn eq(&self, other: &HandShape4) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.