pub struct Tab {
pub uuid: Uuid,
pub meta: Arc<TabMeta>,
pub tracks: Vec<Arc<Track>>,
pub sections: Vec<Arc<Section>>,
pub form: Form,
pub bars: Vec<Arc<TabBar>>,
}
Fields§
§uuid: Uuid
§meta: Arc<TabMeta>
§tracks: Vec<Arc<Track>>
§sections: Vec<Arc<Section>>
§form: Form
§bars: Vec<Arc<TabBar>>
Implementations§
Source§impl Tab
impl Tab
pub fn try_parse_arc( proto: Tab, add_ready_section: bool, bars_range: Option<(usize, usize)>, ) -> Result<Arc<Self>, ParseError>
Source§impl Tab
impl Tab
pub fn bar_units(&self) -> Units
pub fn bar_beats(&self) -> u8
pub fn signature(&self) -> Signature
pub fn beat_unit(&self) -> Unit
pub fn calc_syllable(&self, pitch: &Pitch) -> Syllable
pub fn calc_note_from_pitch(&self, pitch: &Pitch, octave: &Octave) -> Note
pub fn calc_note_from_syllable( &self, syllable: &Syllable, octave: &Octave, ) -> Note
pub fn get_track_of_kind(&self, kind: TrackKind) -> Option<Arc<Track>>
pub fn get_bar_of_ordinal(&self, bar_ordinal: usize) -> Option<Arc<TabBar>>
pub fn get_bar(&self, pos: BarPosition) -> Option<Arc<TabBar>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tab
impl RefUnwindSafe for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnwindSafe for Tab
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