#[repr(C)]pub struct TimingPoints {
pub points: Vec<TimingPoint>,
}Fields§
§points: Vec<TimingPoint>Implementations§
Source§impl TimingPoints
impl TimingPoints
pub fn with_capacity(capacity: usize) -> Self
pub fn new(points: Vec<TimingPoint>) -> Self
pub fn add(&mut self, time: i32, beat: f32, change: TimingChange)
pub fn iter(&self) -> impl Iterator<Item = &TimingPoint>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut TimingPoint>
pub fn bpm_changes(&self) -> impl Iterator<Item = &TimingPoint> + '_
pub fn sv_changes(&self) -> impl Iterator<Item = &TimingPoint> + '_
pub fn is_bpms_empty(&self) -> bool
pub fn is_sv_empty(&self) -> bool
pub fn bpms(&self) -> Vec<f32>
pub fn bpms_times(&self) -> Vec<i32>
pub fn sv(&self) -> Vec<f32>
Trait Implementations§
Source§impl Clone for TimingPoints
impl Clone for TimingPoints
Source§fn clone(&self) -> TimingPoints
fn clone(&self) -> TimingPoints
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 TimingPoints
impl Debug for TimingPoints
Source§impl From<TimingPoints> for JsValue
impl From<TimingPoints> for JsValue
Source§fn from(value: TimingPoints) -> Self
fn from(value: TimingPoints) -> Self
Converts to this type from the input type.
Source§impl From<Vec<TimingPoint>> for TimingPoints
impl From<Vec<TimingPoint>> for TimingPoints
Source§fn from(points: Vec<TimingPoint>) -> Self
fn from(points: Vec<TimingPoint>) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TimingPoints
impl FromWasmAbi for TimingPoints
Source§impl IntoWasmAbi for TimingPoints
impl IntoWasmAbi for TimingPoints
Source§impl LongRefFromWasmAbi for TimingPoints
impl LongRefFromWasmAbi for TimingPoints
Source§impl OptionFromWasmAbi for TimingPoints
impl OptionFromWasmAbi for TimingPoints
Source§impl OptionIntoWasmAbi for TimingPoints
impl OptionIntoWasmAbi for TimingPoints
Source§impl RefFromWasmAbi for TimingPoints
impl RefFromWasmAbi for TimingPoints
Source§type Anchor = RcRef<TimingPoints>
type Anchor = RcRef<TimingPoints>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for TimingPoints
impl RefMutFromWasmAbi for TimingPoints
impl SupportsConstructor for TimingPoints
impl SupportsInstanceProperty for TimingPoints
impl SupportsStaticProperty for TimingPoints
Source§impl TryFromJsValue for TimingPoints
impl TryFromJsValue for TimingPoints
Source§impl VectorFromWasmAbi for TimingPoints
impl VectorFromWasmAbi for TimingPoints
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TimingPoints]>
Source§impl VectorIntoJsValue for TimingPoints
impl VectorIntoJsValue for TimingPoints
fn vector_into_jsvalue(vector: Box<[TimingPoints]>) -> JsValue
Source§impl VectorIntoWasmAbi for TimingPoints
impl VectorIntoWasmAbi for TimingPoints
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TimingPoints]>) -> Self::Abi
Source§impl WasmDescribeVector for TimingPoints
impl WasmDescribeVector for TimingPoints
Auto Trait Implementations§
impl Freeze for TimingPoints
impl RefUnwindSafe for TimingPoints
impl Send for TimingPoints
impl Sync for TimingPoints
impl Unpin for TimingPoints
impl UnsafeUnpin for TimingPoints
impl UnwindSafe for TimingPoints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.