pub enum MaterialGraphNode {
Value(MaterialValue),
Input(MaterialGraphInput),
Operation(MaterialGraphOperation),
Transfer(MaterialGraphTransfer),
Output(MaterialGraphOutput),
}
Variants§
Value(MaterialValue)
Input(MaterialGraphInput)
Operation(MaterialGraphOperation)
Transfer(MaterialGraphTransfer)
Output(MaterialGraphOutput)
Implementations§
source§impl MaterialGraphNode
impl MaterialGraphNode
pub fn inputs(&self) -> HashSet<MaterialGraphNodeId>
pub fn is_output(&self) -> bool
pub fn has_input(&self, id: MaterialGraphNodeId) -> bool
pub fn clone_unconnected(&self) -> Self
Trait Implementations§
source§impl Clone for MaterialGraphNode
impl Clone for MaterialGraphNode
source§fn clone(&self) -> MaterialGraphNode
fn clone(&self) -> MaterialGraphNode
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 MaterialGraphNode
impl Debug for MaterialGraphNode
source§impl<'de> Deserialize<'de> for MaterialGraphNode
impl<'de> Deserialize<'de> for MaterialGraphNode
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 From<MaterialGraphInput> for MaterialGraphNode
impl From<MaterialGraphInput> for MaterialGraphNode
source§fn from(node: MaterialGraphInput) -> Self
fn from(node: MaterialGraphInput) -> Self
Converts to this type from the input type.
source§impl From<MaterialGraphOperation> for MaterialGraphNode
impl From<MaterialGraphOperation> for MaterialGraphNode
source§fn from(node: MaterialGraphOperation) -> Self
fn from(node: MaterialGraphOperation) -> Self
Converts to this type from the input type.
source§impl From<MaterialGraphOutput> for MaterialGraphNode
impl From<MaterialGraphOutput> for MaterialGraphNode
source§fn from(node: MaterialGraphOutput) -> Self
fn from(node: MaterialGraphOutput) -> Self
Converts to this type from the input type.
source§impl From<MaterialGraphTransfer> for MaterialGraphNode
impl From<MaterialGraphTransfer> for MaterialGraphNode
source§fn from(node: MaterialGraphTransfer) -> Self
fn from(node: MaterialGraphTransfer) -> Self
Converts to this type from the input type.
source§impl From<MaterialValue> for MaterialGraphNode
impl From<MaterialValue> for MaterialGraphNode
source§fn from(node: MaterialValue) -> Self
fn from(node: MaterialValue) -> Self
Converts to this type from the input type.
source§impl PartialEq<MaterialGraphNode> for MaterialGraphNode
impl PartialEq<MaterialGraphNode> for MaterialGraphNode
source§fn eq(&self, other: &MaterialGraphNode) -> bool
fn eq(&self, other: &MaterialGraphNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MaterialGraphNode
impl Serialize for MaterialGraphNode
impl StructuralPartialEq for MaterialGraphNode
Auto Trait Implementations§
impl RefUnwindSafe for MaterialGraphNode
impl Send for MaterialGraphNode
impl Sync for MaterialGraphNode
impl Unpin for MaterialGraphNode
impl UnwindSafe for MaterialGraphNode
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