Struct BoneLayerMask
#[repr(transparent)]pub struct BoneLayerMask(pub u128);Expand description
128-bit bone mask (1 bit per joint up to MAX_JOINTS = 128).
Tuple Fields§
§0: u128Implementations§
§impl BoneLayerMask
impl BoneLayerMask
pub const ALL: BoneLayerMask
pub const ALL: BoneLayerMask
All 128 joints enabled.
pub const NONE: BoneLayerMask
pub const NONE: BoneLayerMask
No joints enabled.
pub fn from_joint_subtree(
parent_indices: &[i32],
root_joint: usize,
) -> BoneLayerMask
pub fn from_joint_subtree( parent_indices: &[i32], root_joint: usize, ) -> BoneLayerMask
Builds a BoneLayerMask covering root_joint and all of its descendants
from a parent index slice (parent < 0 indicates a root bone).
pub fn from_joints(joints: &[Joint], root_joint: usize) -> BoneLayerMask
pub fn from_joints(joints: &[Joint], root_joint: usize) -> BoneLayerMask
Builds a BoneLayerMask covering root_joint and all of its descendants from &[Joint].
Trait Implementations§
§impl Clone for BoneLayerMask
impl Clone for BoneLayerMask
§fn clone(&self) -> BoneLayerMask
fn clone(&self) -> BoneLayerMask
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 BoneLayerMask
§impl Debug for BoneLayerMask
impl Debug for BoneLayerMask
§impl Default for BoneLayerMask
impl Default for BoneLayerMask
§fn default() -> BoneLayerMask
fn default() -> BoneLayerMask
Returns the “default value” for a type. Read more
impl Eq for BoneLayerMask
§impl PartialEq for BoneLayerMask
impl PartialEq for BoneLayerMask
impl Pod for BoneLayerMask
impl StructuralPartialEq for BoneLayerMask
Auto Trait Implementations§
impl Freeze for BoneLayerMask
impl RefUnwindSafe for BoneLayerMask
impl Send for BoneLayerMask
impl Sync for BoneLayerMask
impl Unpin for BoneLayerMask
impl UnsafeUnpin for BoneLayerMask
impl UnwindSafe for BoneLayerMask
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
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 moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.