pub struct ReorderHint {
pub hint: Handle<Expression>,
pub bits: Handle<Expression>,
}Expand description
A user-supplied hint for HitObjectFunction::Reorder.
Fields§
§hint: Handle<Expression>The value to reorder by. Must be a U32 scalar.
bits: Handle<Expression>How many of the low bits of hint are significant. Must be a U32
scalar. Values greater than 32 are undefined behavior.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for ReorderHint
impl<'arbitrary> Arbitrary<'arbitrary> for ReorderHint
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for ReorderHint
impl Clone for ReorderHint
Source§fn clone(&self) -> ReorderHint
fn clone(&self) -> ReorderHint
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 ReorderHint
impl Debug for ReorderHint
Source§impl<'de> Deserialize<'de> for ReorderHint
impl<'de> Deserialize<'de> for ReorderHint
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 Serialize for ReorderHint
impl Serialize for ReorderHint
impl Copy for ReorderHint
Auto Trait Implementations§
impl Freeze for ReorderHint
impl RefUnwindSafe for ReorderHint
impl Send for ReorderHint
impl Sync for ReorderHint
impl Unpin for ReorderHint
impl UnsafeUnpin for ReorderHint
impl UnwindSafe for ReorderHint
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