pub struct BodyLandmarkFrame {Show 19 fields
pub sacroiliac_joint: Landmark,
pub suprasternal_notch: Landmark,
pub nose: Landmark,
pub left_ear: Landmark,
pub right_ear: Landmark,
pub left_shoulder: Landmark,
pub right_shoulder: Landmark,
pub left_elbow: Landmark,
pub right_elbow: Landmark,
pub left_wrist: Landmark,
pub right_wrist: Landmark,
pub left_hip: Landmark,
pub right_hip: Landmark,
pub left_knee: Landmark,
pub right_knee: Landmark,
pub left_ankle: Landmark,
pub right_ankle: Landmark,
pub left_foot_index: Landmark,
pub right_foot_index: Landmark,
}Expand description
Body-landmark positions for one frame (19 MAIA landmarks).
Fields§
§sacroiliac_joint: Landmark§suprasternal_notch: Landmark§nose: Landmark§left_ear: Landmark§right_ear: Landmark§left_shoulder: Landmark§right_shoulder: Landmark§left_elbow: Landmark§right_elbow: Landmark§left_wrist: Landmark§right_wrist: Landmark§left_hip: Landmark§right_hip: Landmark§left_knee: Landmark§right_knee: Landmark§left_ankle: Landmark§right_ankle: Landmark§left_foot_index: Landmark§right_foot_index: LandmarkImplementations§
Source§impl BodyLandmarkFrame
impl BodyLandmarkFrame
Sourcepub const fn from_array(values: [Landmark; 19]) -> Self
pub const fn from_array(values: [Landmark; 19]) -> Self
Builds a frame from its values in wire order.
Useful for the Zendo server, which produces frames to encode rather than decoding them.
Sourcepub const fn get(&self, key: LandmarkName) -> Landmark
pub const fn get(&self, key: LandmarkName) -> Landmark
Looks up a single value by name.
Sourcepub fn iter(&self) -> impl Iterator<Item = (LandmarkName, Landmark)>
pub fn iter(&self) -> impl Iterator<Item = (LandmarkName, Landmark)>
Iterates over (name, value) pairs in wire order.
Trait Implementations§
Source§impl Clone for BodyLandmarkFrame
impl Clone for BodyLandmarkFrame
Source§fn clone(&self) -> BodyLandmarkFrame
fn clone(&self) -> BodyLandmarkFrame
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 moreimpl Copy for BodyLandmarkFrame
Source§impl Debug for BodyLandmarkFrame
impl Debug for BodyLandmarkFrame
Source§impl Default for BodyLandmarkFrame
impl Default for BodyLandmarkFrame
Source§fn default() -> BodyLandmarkFrame
fn default() -> BodyLandmarkFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for BodyLandmarkFrame
impl PartialEq for BodyLandmarkFrame
Source§fn eq(&self, other: &BodyLandmarkFrame) -> bool
fn eq(&self, other: &BodyLandmarkFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BodyLandmarkFrame
Auto Trait Implementations§
impl Freeze for BodyLandmarkFrame
impl RefUnwindSafe for BodyLandmarkFrame
impl Send for BodyLandmarkFrame
impl Sync for BodyLandmarkFrame
impl Unpin for BodyLandmarkFrame
impl UnsafeUnpin for BodyLandmarkFrame
impl UnwindSafe for BodyLandmarkFrame
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