Struct oxygengine_ha_renderer::material::graph::node::MaterialGraphOperation
source · pub struct MaterialGraphOperation {
pub name: String,
/* private fields */
}
Fields§
§name: String
Implementations§
source§impl MaterialGraphOperation
impl MaterialGraphOperation
pub fn new(name: String) -> Self
pub fn new_connected( name: String, input_connections: HashMap<String, MaterialGraphNodeId> ) -> Self
pub fn has_input(&self, id: MaterialGraphNodeId) -> bool
pub fn clone_unconnected(&self) -> Self
Trait Implementations§
source§impl Clone for MaterialGraphOperation
impl Clone for MaterialGraphOperation
source§fn clone(&self) -> MaterialGraphOperation
fn clone(&self) -> MaterialGraphOperation
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 MaterialGraphOperation
impl Debug for MaterialGraphOperation
source§impl<'de> Deserialize<'de> for MaterialGraphOperation
impl<'de> Deserialize<'de> for MaterialGraphOperation
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<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 PartialEq<MaterialGraphOperation> for MaterialGraphOperation
impl PartialEq<MaterialGraphOperation> for MaterialGraphOperation
source§fn eq(&self, other: &MaterialGraphOperation) -> bool
fn eq(&self, other: &MaterialGraphOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MaterialGraphOperation
impl Serialize for MaterialGraphOperation
impl StructuralPartialEq for MaterialGraphOperation
Auto Trait Implementations§
impl RefUnwindSafe for MaterialGraphOperation
impl Send for MaterialGraphOperation
impl Sync for MaterialGraphOperation
impl Unpin for MaterialGraphOperation
impl UnwindSafe for MaterialGraphOperation
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