#[repr(C)]pub struct HitObjects {
pub objects: Vec<HitObject>,
}Fields§
§objects: Vec<HitObject>Implementations§
Source§impl HitObjects
impl HitObjects
pub fn with_capacity(capacity: usize) -> Self
pub fn new(objects: Vec<HitObject>) -> Self
pub fn add_hitobject( &mut self, time: i32, beat: f32, keysound: KeySound, key: Key, lane: u8, )
pub fn add_hitobject_sorted(&mut self, object: HitObject)
pub fn iter(&self) -> impl Iterator<Item = &HitObject>
Trait Implementations§
Source§impl Clone for HitObjects
impl Clone for HitObjects
Source§fn clone(&self) -> HitObjects
fn clone(&self) -> HitObjects
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 HitObjects
impl Debug for HitObjects
Source§impl From<HitObjects> for JsValue
impl From<HitObjects> for JsValue
Source§fn from(value: HitObjects) -> Self
fn from(value: HitObjects) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for HitObjects
impl FromWasmAbi for HitObjects
Source§impl IntoWasmAbi for HitObjects
impl IntoWasmAbi for HitObjects
Source§impl LongRefFromWasmAbi for HitObjects
impl LongRefFromWasmAbi for HitObjects
Source§impl OptionFromWasmAbi for HitObjects
impl OptionFromWasmAbi for HitObjects
Source§impl OptionIntoWasmAbi for HitObjects
impl OptionIntoWasmAbi for HitObjects
Source§impl RefFromWasmAbi for HitObjects
impl RefFromWasmAbi for HitObjects
Source§type Anchor = RcRef<HitObjects>
type Anchor = RcRef<HitObjects>
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 HitObjects
impl RefMutFromWasmAbi for HitObjects
impl SupportsConstructor for HitObjects
impl SupportsInstanceProperty for HitObjects
impl SupportsStaticProperty for HitObjects
Source§impl TryFromJsValue for HitObjects
impl TryFromJsValue for HitObjects
Source§impl VectorFromWasmAbi for HitObjects
impl VectorFromWasmAbi for HitObjects
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[HitObjects]>
Source§impl VectorIntoJsValue for HitObjects
impl VectorIntoJsValue for HitObjects
fn vector_into_jsvalue(vector: Box<[HitObjects]>) -> JsValue
Source§impl VectorIntoWasmAbi for HitObjects
impl VectorIntoWasmAbi for HitObjects
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[HitObjects]>) -> Self::Abi
Source§impl WasmDescribeVector for HitObjects
impl WasmDescribeVector for HitObjects
Auto Trait Implementations§
impl Freeze for HitObjects
impl RefUnwindSafe for HitObjects
impl Send for HitObjects
impl Sync for HitObjects
impl Unpin for HitObjects
impl UnsafeUnpin for HitObjects
impl UnwindSafe for HitObjects
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.