pub enum SimpletonNodes {
Start,
CreateVariable {
name: String,
},
AssignValue,
Expression(SimpletonExpressionNodes),
Return,
IfElse,
While,
For {
variable: String,
},
}
Variants§
Trait Implementations§
Source§impl Clone for SimpletonNodes
impl Clone for SimpletonNodes
Source§fn clone(&self) -> SimpletonNodes
fn clone(&self) -> SimpletonNodes
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpletonNodes
impl Debug for SimpletonNodes
Source§impl Default for SimpletonNodes
impl Default for SimpletonNodes
Source§fn default() -> SimpletonNodes
fn default() -> SimpletonNodes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimpletonNodes
impl<'de> Deserialize<'de> for SimpletonNodes
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 NodeDefinition for SimpletonNodes
impl NodeDefinition for SimpletonNodes
type TypeInfo = SimpletonNodeTypeInfo
fn node_label(&self, _: &Registry) -> String
fn node_pins_in(&self, registry: &Registry) -> Vec<NodePin<Self::TypeInfo>>
fn node_pins_out(&self, _: &Registry) -> Vec<NodePin<Self::TypeInfo>>
fn node_is_start(&self, _: &Registry) -> bool
fn node_suggestions( x: i64, y: i64, _: NodeSuggestion<'_, Self>, registry: &Registry, ) -> Vec<ResponseSuggestionNode<Self>>
fn get_property(&self, property_name: &str) -> Option<PropertyValue>
fn set_property(&mut self, property_name: &str, property_value: PropertyValue)
fn validate_connection( &self, source: &Self, registry: &Registry, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for SimpletonNodes
impl RefUnwindSafe for SimpletonNodes
impl Send for SimpletonNodes
impl Sync for SimpletonNodes
impl Unpin for SimpletonNodes
impl UnwindSafe for SimpletonNodes
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