Skip to main content

ConstraintComponentT

Struct ConstraintComponentT 

Source
#[repr(C)]
pub struct ConstraintComponentT {
Show 17 fields pub type_: ConstraintType, pub enabled: bool, pub was_enabled: bool, pub _padding_226: [c_char; 2], pub blend_time: f32, pub blend: f32, pub constrained_entity: EntityT, pub constrained_node_idx: u32, pub _padding_239: [c_char; 4], pub goal_entity: EntityT, pub goal_node_idx: u32, pub _padding_246: [c_char; 4], pub goal_position: Vec3T, pub match_rotation: bool, pub _padding_254: [c_char; 3], pub goal_rotation: Vec4T, pub __bindgen_anon_1: ConstraintComponentTBindgenTy1,
}

Fields§

§type_: ConstraintType§enabled: bool§was_enabled: bool§_padding_226: [c_char; 2]§blend_time: f32§blend: f32§constrained_entity: EntityT§constrained_node_idx: u32§_padding_239: [c_char; 4]§goal_entity: EntityT§goal_node_idx: u32§_padding_246: [c_char; 4]§goal_position: Vec3T§match_rotation: bool§_padding_254: [c_char; 3]§goal_rotation: Vec4T§__bindgen_anon_1: ConstraintComponentTBindgenTy1

Trait Implementations§

Source§

impl Default for ConstraintComponentT

Source§

fn default() -> Self

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

Auto Trait Implementations§

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> 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, 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.