pub struct Obj {
pub offset: ObjTime,
pub kind: NoteKind,
pub is_player1: bool,
pub key: Key,
pub obj: ObjId,
}Expand description
An object on the score.
Fields§
§offset: ObjTimeThe time offset in the track.
kind: NoteKindTHe note kind of the the object.
is_player1: boolWhether the note is for player 1.
key: KeyThe key, or lane, where the object is placed.
obj: ObjIdThe id of the object.
Trait Implementations§
source§impl Ord for Obj
impl Ord for Obj
source§impl PartialOrd for Obj
impl PartialOrd for Obj
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Obj
impl StructuralEq for Obj
impl StructuralPartialEq for Obj
Auto Trait Implementations§
impl RefUnwindSafe for Obj
impl Send for Obj
impl Sync for Obj
impl Unpin for Obj
impl UnwindSafe for Obj
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