pub struct OsuHitobject {
pub object_type: OsuHitobjectType,
pub x: i32,
pub y: i32,
pub end_time: Option<i32>,
pub new_combo: bool,
pub combo_skip: u8,
}Fields§
§object_type: OsuHitobjectType§x: i32§y: i32§end_time: Option<i32>§new_combo: bool§combo_skip: u8Implementations§
Source§impl OsuHitobject
impl OsuHitobject
pub fn empty() -> Self
pub fn hit_circle(x: i32, y: i32) -> Self
pub fn slider(x: i32, y: i32) -> Self
pub fn spinner(end_time: i32) -> Self
pub fn unknown() -> Self
pub fn with_new_combo(self) -> Self
pub fn with_combo_skip(self, skip: u8) -> Self
pub fn end_time(&self) -> Option<i32>
pub fn is_new_combo(&self) -> bool
pub fn combo_skip(&self) -> u8
Trait Implementations§
Source§impl Clone for OsuHitobject
impl Clone for OsuHitobject
Source§fn clone(&self) -> OsuHitobject
fn clone(&self) -> OsuHitobject
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 OsuHitobject
Source§impl Debug for OsuHitobject
impl Debug for OsuHitobject
Source§impl From<OsuHitobject> for JsValue
impl From<OsuHitobject> for JsValue
Source§fn from(value: OsuHitobject) -> Self
fn from(value: OsuHitobject) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for OsuHitobject
impl FromWasmAbi for OsuHitobject
Source§impl IntoWasmAbi for OsuHitobject
impl IntoWasmAbi for OsuHitobject
Source§impl LongRefFromWasmAbi for OsuHitobject
impl LongRefFromWasmAbi for OsuHitobject
Source§impl OptionFromWasmAbi for OsuHitobject
impl OptionFromWasmAbi for OsuHitobject
Source§impl OptionIntoWasmAbi for OsuHitobject
impl OptionIntoWasmAbi for OsuHitobject
Source§impl PartialEq for OsuHitobject
impl PartialEq for OsuHitobject
Source§fn eq(&self, other: &OsuHitobject) -> bool
fn eq(&self, other: &OsuHitobject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for OsuHitobject
impl RefFromWasmAbi for OsuHitobject
Source§type Anchor = RcRef<OsuHitobject>
type Anchor = RcRef<OsuHitobject>
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 OsuHitobject
impl RefMutFromWasmAbi for OsuHitobject
impl StructuralPartialEq for OsuHitobject
impl SupportsConstructor for OsuHitobject
impl SupportsInstanceProperty for OsuHitobject
impl SupportsStaticProperty for OsuHitobject
Source§impl TryFromJsValue for OsuHitobject
impl TryFromJsValue for OsuHitobject
Source§impl VectorFromWasmAbi for OsuHitobject
impl VectorFromWasmAbi for OsuHitobject
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OsuHitobject]>
Source§impl VectorIntoJsValue for OsuHitobject
impl VectorIntoJsValue for OsuHitobject
fn vector_into_jsvalue(vector: Box<[OsuHitobject]>) -> JsValue
Source§impl VectorIntoWasmAbi for OsuHitobject
impl VectorIntoWasmAbi for OsuHitobject
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OsuHitobject]>) -> Self::Abi
Source§impl WasmDescribeVector for OsuHitobject
impl WasmDescribeVector for OsuHitobject
Auto Trait Implementations§
impl Freeze for OsuHitobject
impl RefUnwindSafe for OsuHitobject
impl Send for OsuHitobject
impl Sync for OsuHitobject
impl Unpin for OsuHitobject
impl UnsafeUnpin for OsuHitobject
impl UnwindSafe for OsuHitobject
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.