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: ObjTime
The time offset in the track.
kind: NoteKind
THe note kind of the the object.
is_player1: bool
Whether the note is for player 1.
key: Key
The key, or lane, where the object is placed.
obj: ObjId
The id of the object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Obj
impl<'de> Deserialize<'de> for Obj
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Obj
impl Ord for Obj
Source§impl PartialOrd for Obj
impl PartialOrd for Obj
impl Eq for Obj
impl StructuralPartialEq for Obj
Auto Trait Implementations§
impl Freeze for Obj
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more