pub struct ProjectImpl { /* private fields */ }Implementations§
Source§impl ProjectImpl
impl ProjectImpl
pub fn note_repo(&self) -> &BagStore<u32, Rc<Note>, ModelChangeMetadata>
pub fn bar_repo(&self) -> &Store<u32, Bar, ModelChangeMetadata>
pub fn tempo_repo(&self) -> &Store<u32, Tempo, ModelChangeMetadata>
pub fn dumper_repo(&self) -> &Store<u32, CtrlChg, ModelChangeMetadata>
pub fn soft_repo(&self) -> &Store<u32, CtrlChg, ModelChangeMetadata>
pub fn rhythm(&self) -> Rhythm
pub fn key(&self) -> Key
pub fn grid(&self) -> Grid
pub fn bar_no(&self, bar: &Bar) -> Option<usize>
pub fn tempo_at(&self, tick: u32) -> TempoValue
pub fn dumper_at(&self, tick: u32) -> Velocity
pub fn soft_at(&self, tick: u32) -> Velocity
pub fn location_to_tick(&self, loc: Location) -> Result<u32, LocationError>
pub fn tick_to_location(&self, tick: u32) -> Location
pub fn rhythm_at(&self, tick: u32) -> Rhythm
pub fn key_at(&self, tick: u32) -> Key
Trait Implementations§
Source§impl Clone for ProjectImpl
impl Clone for ProjectImpl
Source§fn clone(&self) -> ProjectImpl
fn clone(&self) -> ProjectImpl
Returns a duplicate 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 Default for ProjectImpl
impl Default for ProjectImpl
Source§impl<'de> Deserialize<'de> for ProjectImpl
impl<'de> Deserialize<'de> for ProjectImpl
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 From<ExportedProject> for ProjectImpl
impl From<ExportedProject> for ProjectImpl
Source§fn from(exported: ExportedProject) -> Self
fn from(exported: ExportedProject) -> Self
Converts to this type from the input type.
Source§impl From<ProjectImpl> for ExportedProject
impl From<ProjectImpl> for ExportedProject
Source§fn from(value: ProjectImpl) -> Self
fn from(value: ProjectImpl) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProjectImpl
impl RefUnwindSafe for ProjectImpl
impl !Send for ProjectImpl
impl !Sync for ProjectImpl
impl Unpin for ProjectImpl
impl UnwindSafe for ProjectImpl
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