#[repr(u32)]pub enum Handed {
Left = 0,
Right = 1,
Max = 2,
}
Expand description
An enum for indicating which hand to use! https://stereokit.net/Pages/StereoKit/Handed.html
see also Hand Controller
Variants§
Left = 0
Left hand.
Right = 1
Right hand.
Max = 2
The number of hands one generally has, this is much nicer than doing a for loop with ‘2’ as the condition! It’s much clearer when you can loop Hand.Max times instead.
Trait Implementations§
impl Copy for Handed
impl Eq for Handed
impl StructuralPartialEq for Handed
Auto Trait Implementations§
impl Freeze for Handed
impl RefUnwindSafe for Handed
impl Send for Handed
impl Sync for Handed
impl Unpin for Handed
impl UnwindSafe for Handed
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