pub struct Context {
pub key: Key,
pub scale: Scale,
pub duration: Duration,
pub octave: Octave,
pub fretted: FrettedContext,
}Fields§
§key: Key§scale: Scale§duration: Duration§octave: Octave§fretted: FrettedContextImplementations§
Source§impl Context
impl Context
pub fn key() -> Key
pub fn scale() -> Scale
pub fn duration() -> Duration
pub fn octave() -> Octave
pub fn fretted() -> FrettedContext
pub fn set_key(key: Key)
pub fn set_scale(scale: Scale)
pub fn set_duration(duration: Duration)
pub fn set_octave(octave: Octave)
Source§impl Context
impl Context
pub fn tweaked_duration(tweak: &Option<DurationTweakDsl>) -> Duration
pub fn duration_quote(tweak: &Option<DurationTweakDsl>) -> TokenStream
pub fn tweaked_octave(tweak: &Option<OctaveTweakDsl>) -> Octave
pub fn octave_quote(tweak: &Option<OctaveTweakDsl>) -> TokenStream
pub fn calc_note_from_pitch( tweak: &Option<OctaveTweakDsl>, pitch: &Pitch, ) -> Note
pub fn calc_note_from_syllable( tweak: &Option<OctaveTweakDsl>, syllable: &Syllable, ) -> Note
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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