pub struct Skeleton { /* private fields */ }Implementations§
source§impl Skeleton
impl Skeleton
pub fn new(bones: Vec<SkeletonBone>) -> Result<Self, SkeletonError>
pub fn root_bone(&self) -> Option<&SkeletonBone>
pub fn has_bone_by_index(&self, index: usize) -> bool
pub fn bone_by_index(&self, index: usize) -> Option<&SkeletonBone>
pub fn has_bone_by_name(&self, name: &str) -> bool
pub fn bone_by_name(&self, name: &str) -> Option<&SkeletonBone>
pub fn bone_index(&self, name: &str) -> Option<usize>
pub fn bone_with_index(&self, name: &str) -> Option<(&SkeletonBone, usize)>
pub fn bones(&self) -> &[SkeletonBone]
pub fn children_by_index( &self, index: usize ) -> impl Iterator<Item = &SkeletonBone>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Skeleton
impl<'de> Deserialize<'de> for Skeleton
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 TryFrom<SkeletonHierarchy> for Skeleton
impl TryFrom<SkeletonHierarchy> for Skeleton
§type Error = SkeletonError
type Error = SkeletonError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for Skeleton
impl Send for Skeleton
impl Sync for Skeleton
impl Unpin for Skeleton
impl UnwindSafe for Skeleton
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more