Bone

Struct Bone 

Source
pub struct Bone {
Show 22 fields pub id: i32, pub name: String, pub parent_id: i32, pub tex: String, pub ik_family_id: i32, pub ik_constraint_str: JointConstraint, pub ik_constraint: i32, pub ik_mode_str: InverseKinematicsMode, pub ik_mode: i32, pub ik_target_id: i32, pub ik_bone_ids: Vec<i32>, pub vertices: Vec<Vertex>, pub indices: Vec<u32>, pub binds: Vec<BoneBind>, pub rot: f32, pub scale: Vec2, pub pos: Vec2, pub zindex: f32, pub init_rot: f32, pub init_scale: Vec2, pub init_pos: Vec2, pub init_ik_constraint: i32,
}

Fields§

§id: i32§name: String§parent_id: i32§tex: String§ik_family_id: i32§ik_constraint_str: JointConstraint§ik_constraint: i32§ik_mode_str: InverseKinematicsMode§ik_mode: i32§ik_target_id: i32§ik_bone_ids: Vec<i32>§vertices: Vec<Vertex>§indices: Vec<u32>§binds: Vec<BoneBind>§rot: f32§scale: Vec2§pos: Vec2§zindex: f32§init_rot: f32§init_scale: Vec2§init_pos: Vec2§init_ik_constraint: i32

Trait Implementations§

Source§

impl Clone for Bone

Source§

fn clone(&self) -> Bone

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Bone

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Bone

Source§

fn default() -> Bone

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Bone

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Freeze for Bone

§

impl RefUnwindSafe for Bone

§

impl Send for Bone

§

impl Sync for Bone

§

impl Unpin for Bone

§

impl UnwindSafe for Bone

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,