pub struct ProportionSchema {
pub name: String,
pub heads_tall: f32,
pub shoulder_ratio: f32,
pub hip_ratio: f32,
pub leg_ratio: f32,
pub arm_ratio: f32,
pub description: String,
}Expand description
Canonical proportion schema (ratios expressed as multiples of head height).
Fields§
§name: String§heads_tall: f32Total height in heads.
shoulder_ratio: f32Shoulder width / head width.
hip_ratio: f32Hip width / head width.
leg_ratio: f32Leg length / total height.
arm_ratio: f32Arm length / total height.
description: StringAuto Trait Implementations§
impl Freeze for ProportionSchema
impl RefUnwindSafe for ProportionSchema
impl Send for ProportionSchema
impl Sync for ProportionSchema
impl Unpin for ProportionSchema
impl UnsafeUnpin for ProportionSchema
impl UnwindSafe for ProportionSchema
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
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 more