pub struct MaterialPropertyNode { /* private fields */ }Expand description
Wraps the corresponding Model I/O material property node counterpart.
Implementations§
Source§impl MaterialPropertyNode
impl MaterialPropertyNode
Sourcepub fn new(
inputs: &[&MaterialProperty],
outputs: &[&MaterialProperty],
) -> Result<Self>
pub fn new( inputs: &[&MaterialProperty], outputs: &[&MaterialProperty], ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O material property node counterpart.
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Calls the corresponding Model I/O method on the wrapped Model I/O material property node counterpart.
Sourcepub fn set_name(&self, name: &str) -> Result<()>
pub fn set_name(&self, name: &str) -> Result<()>
Calls the corresponding Model I/O method on the wrapped Model I/O material property node counterpart.
Sourcepub fn inputs(&self) -> Result<Vec<MaterialProperty>>
pub fn inputs(&self) -> Result<Vec<MaterialProperty>>
Calls the corresponding Model I/O method on the wrapped Model I/O material property node counterpart.
Sourcepub fn outputs(&self) -> Result<Vec<MaterialProperty>>
pub fn outputs(&self) -> Result<Vec<MaterialProperty>>
Calls the corresponding Model I/O method on the wrapped Model I/O material property node counterpart.
Trait Implementations§
Source§impl Clone for MaterialPropertyNode
impl Clone for MaterialPropertyNode
Source§fn clone(&self) -> MaterialPropertyNode
fn clone(&self) -> MaterialPropertyNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MaterialPropertyNode
impl Debug for MaterialPropertyNode
Auto Trait Implementations§
impl Freeze for MaterialPropertyNode
impl RefUnwindSafe for MaterialPropertyNode
impl !Send for MaterialPropertyNode
impl !Sync for MaterialPropertyNode
impl Unpin for MaterialPropertyNode
impl UnsafeUnpin for MaterialPropertyNode
impl UnwindSafe for MaterialPropertyNode
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