pub struct CatchHitobject {
pub object_type: CatchHitobjectType,
pub x_position: i32,
pub end_time: Option<i32>,
pub hyperdash: bool,
}Fields§
§object_type: CatchHitobjectType§x_position: i32§end_time: Option<i32>§hyperdash: boolImplementations§
Source§impl CatchHitobject
impl CatchHitobject
pub fn empty() -> Self
pub fn fruit(x_position: i32) -> Self
pub fn juice(x_position: i32) -> Self
pub fn banana(x_position: i32, end_time: i32) -> Self
pub fn hyperfruit(x_position: i32) -> Self
pub fn unknown() -> Self
pub fn end_time(&self) -> Option<i32>
pub fn is_hyperdash(&self) -> bool
Trait Implementations§
Source§impl Clone for CatchHitobject
impl Clone for CatchHitobject
Source§fn clone(&self) -> CatchHitobject
fn clone(&self) -> CatchHitobject
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 moreimpl Copy for CatchHitobject
Source§impl Debug for CatchHitobject
impl Debug for CatchHitobject
Source§impl From<CatchHitobject> for JsValue
impl From<CatchHitobject> for JsValue
Source§fn from(value: CatchHitobject) -> Self
fn from(value: CatchHitobject) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CatchHitobject
impl FromWasmAbi for CatchHitobject
Source§impl IntoWasmAbi for CatchHitobject
impl IntoWasmAbi for CatchHitobject
Source§impl LongRefFromWasmAbi for CatchHitobject
impl LongRefFromWasmAbi for CatchHitobject
Source§impl OptionFromWasmAbi for CatchHitobject
impl OptionFromWasmAbi for CatchHitobject
Source§impl OptionIntoWasmAbi for CatchHitobject
impl OptionIntoWasmAbi for CatchHitobject
Source§impl PartialEq for CatchHitobject
impl PartialEq for CatchHitobject
Source§fn eq(&self, other: &CatchHitobject) -> bool
fn eq(&self, other: &CatchHitobject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for CatchHitobject
impl RefFromWasmAbi for CatchHitobject
Source§type Anchor = RcRef<CatchHitobject>
type Anchor = RcRef<CatchHitobject>
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 CatchHitobject
impl RefMutFromWasmAbi for CatchHitobject
impl StructuralPartialEq for CatchHitobject
impl SupportsConstructor for CatchHitobject
impl SupportsInstanceProperty for CatchHitobject
impl SupportsStaticProperty for CatchHitobject
Source§impl TryFromJsValue for CatchHitobject
impl TryFromJsValue for CatchHitobject
Source§impl VectorFromWasmAbi for CatchHitobject
impl VectorFromWasmAbi for CatchHitobject
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CatchHitobject]>
Source§impl VectorIntoJsValue for CatchHitobject
impl VectorIntoJsValue for CatchHitobject
fn vector_into_jsvalue(vector: Box<[CatchHitobject]>) -> JsValue
Source§impl VectorIntoWasmAbi for CatchHitobject
impl VectorIntoWasmAbi for CatchHitobject
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CatchHitobject]>) -> Self::Abi
Source§impl WasmDescribeVector for CatchHitobject
impl WasmDescribeVector for CatchHitobject
Auto Trait Implementations§
impl Freeze for CatchHitobject
impl RefUnwindSafe for CatchHitobject
impl Send for CatchHitobject
impl Sync for CatchHitobject
impl Unpin for CatchHitobject
impl UnsafeUnpin for CatchHitobject
impl UnwindSafe for CatchHitobject
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.