pub struct ClampNode {
pub input: InputTyped<DynamicVector, { 0 }>,
pub min: InputTyped<DynamicVector, { _ }>,
pub max: InputTyped<DynamicVector, { _ }>,
pub out: OutputTyped<DynamicVector, { 0 }>,
}Expand description
Clamp input between min and max.
Fields§
§input: InputTyped<DynamicVector, { 0 }>Unclamped input value
min: InputTyped<DynamicVector, { _ }>Minimum value
max: InputTyped<DynamicVector, { _ }>Maximum value
out: OutputTyped<DynamicVector, { 0 }>Output out.
Implementations§
Source§impl ClampNode
impl ClampNode
pub fn resolve_inputs( &self, graph: &NodeGraph, compile: &mut NodeGraphCompile, ) -> Result<(CompiledValue, CompiledValue, CompiledValue)>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClampNode
impl<'de> Deserialize<'de> for ClampNode
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 NodeImpl for ClampNode
impl NodeImpl for ClampNode
fn clone_node(&self) -> Box<dyn NodeImpl>
fn def(&self) -> &NodeDefinition
fn get_node_input(&self, key: &InputKey) -> Result<Input>
fn set_node_input( &mut self, key: &InputKey, _value: Input, ) -> Result<Option<OutputId>>
fn get_param(&self, name: &str) -> Result<ParameterValue>
fn set_param(&mut self, name: &str, _value: ParameterValue) -> Result<()>
fn inputs_ui( &mut self, _concrete_type: &mut NodeConcreteType, _ui: &mut Ui, _id: NodeId, _details: bool, ) -> bool
fn outputs_ui( &mut self, _concrete_type: &mut NodeConcreteType, _ui: &mut Ui, _id: NodeId, _details: bool, ) -> bool
fn parameters_ui( &mut self, _concrete_type: &mut NodeConcreteType, _ui: &mut Ui, _id: NodeId, _details: bool, ) -> bool
fn compile( &self, graph: &NodeGraph, compile: &mut NodeGraphCompile, id: NodeId, ) -> Result<()>
fn cache_output(&self) -> bool
fn get_input_idx(&self, key: &InputKey) -> Result<u32>
fn eval( &self, _graph: &NodeGraph, _execution: &mut NodeGraphExecution, _id: NodeId, ) -> Result<Value>
fn details_ui(&mut self, ui: &mut Ui, id: NodeId) -> bool
fn node_ui(&mut self, ui: &mut Ui, id: NodeId) -> bool
fn ui(&mut self, ui: &mut Ui, id: NodeId, details: bool) -> bool
Auto Trait Implementations§
impl Freeze for ClampNode
impl RefUnwindSafe for ClampNode
impl Send for ClampNode
impl Sync for ClampNode
impl Unpin for ClampNode
impl UnsafeUnpin for ClampNode
impl UnwindSafe for ClampNode
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