pub enum BlendNode {
Params {
name: String,
params: ParamMap,
},
Blend {
mode: BlendMode,
weight: f32,
left: Box<BlendNode>,
right: Box<BlendNode>,
},
Scale {
factor: f32,
child: Box<BlendNode>,
},
Clamp {
min: f32,
max: f32,
child: Box<BlendNode>,
},
Select {
index: usize,
children: Vec<BlendNode>,
},
}Expand description
A node in the blend tree
Variants§
Params
Leaf node: a named parameter set
Blend
Binary blend: mix two children
Scale
Scale all values in child by a factor
Clamp
Clamp all values in child to [min, max]
Select
Select one of N children by index
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlendNode
impl RefUnwindSafe for BlendNode
impl Send for BlendNode
impl Sync for BlendNode
impl Unpin for BlendNode
impl UnsafeUnpin for BlendNode
impl UnwindSafe for BlendNode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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