pub struct TimePointRow {
pub points: Series<TimePointAlphabet>,
}Expand description
One ordered onset-class series over a TimePointSystem.
Fields§
§points: Series<TimePointAlphabet>Validated onset-class order over the system alphabet.
Implementations§
Source§impl TimePointRow
impl TimePointRow
Sourcepub fn try_new(
system: &TimePointSystem,
points: Vec<u16>,
) -> Result<Self, TimePointError>
pub fn try_new( system: &TimePointSystem, points: Vec<u16>, ) -> Result<Self, TimePointError>
Constructs an exhaustive onset-class row for system.
Sourcepub fn modulus(&self) -> NonZeroU16
pub fn modulus(&self) -> NonZeroU16
Returns the system modulus inferred from the retained alphabet.
Sourcepub fn onsets(
&self,
system: &TimePointSystem,
) -> Result<Vec<Time>, TimePointError>
pub fn onsets( &self, system: &TimePointSystem, ) -> Result<Vec<Time>, TimePointError>
Returns exact onset positions under system, without implying any durations.
Sourcepub fn rotate(&self, steps: usize) -> Result<Self, TimePointError>
pub fn rotate(&self, steps: usize) -> Result<Self, TimePointError>
Returns a left-rotated onset-class row reduced modulo the system modulus.
Trait Implementations§
Source§impl Clone for TimePointRow
impl Clone for TimePointRow
Source§fn clone(&self) -> TimePointRow
fn clone(&self) -> TimePointRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimePointRow
impl Debug for TimePointRow
impl Eq for TimePointRow
Source§impl PartialEq for TimePointRow
impl PartialEq for TimePointRow
impl StructuralPartialEq for TimePointRow
Auto Trait Implementations§
impl Freeze for TimePointRow
impl RefUnwindSafe for TimePointRow
impl Send for TimePointRow
impl Sync for TimePointRow
impl Unpin for TimePointRow
impl UnsafeUnpin for TimePointRow
impl UnwindSafe for TimePointRow
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