pub struct Coord(_, _);
Expand description
X, Y coordinates in staff spaces.
Implementations§
source§impl Coord
impl Coord
sourcepub fn x(&self) -> StaffSpaces
pub fn x(&self) -> StaffSpaces
Returns the horizontal component of the coordinate.
sourcepub fn y(&self) -> StaffSpaces
pub fn y(&self) -> StaffSpaces
Returns the vertical component of the coordinate.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Coord
impl<'de> Deserialize<'de> for Coord
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