pub enum BallFrameState {
Missing,
Present(BallSample),
}Expand description
Per-frame ball state (present with position/velocity, or absent).
Variants§
Missing
Present(BallSample)
Implementations§
Trait Implementations§
Source§impl Clone for BallFrameState
impl Clone for BallFrameState
Source§impl Debug for BallFrameState
impl Debug for BallFrameState
Source§impl Default for BallFrameState
impl Default for BallFrameState
Source§impl From<BallSample> for BallFrameState
impl From<BallSample> for BallFrameState
Source§fn from(ball: BallSample) -> Self
fn from(ball: BallSample) -> Self
Converts to this type from the input type.
Source§impl From<Option<BallSample>> for BallFrameState
impl From<Option<BallSample>> for BallFrameState
Source§fn from(ball: Option<BallSample>) -> Self
fn from(ball: Option<BallSample>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BallFrameState
impl RefUnwindSafe for BallFrameState
impl Send for BallFrameState
impl Sync for BallFrameState
impl Unpin for BallFrameState
impl UnsafeUnpin for BallFrameState
impl UnwindSafe for BallFrameState
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