pub struct Node<DATA> {
pub name: String,
/* private fields */
}
Fields§
§name: String
Implementations§
Source§impl<DATA> Node<DATA>where
DATA: Clone,
impl<DATA> Node<DATA>where
DATA: Clone,
pub const fn kind(&self) -> &NodeKind
pub const fn cref(&self) -> &NodeReference
pub const fn index(&self) -> NodeIndex
pub fn id(&self) -> &str
pub const fn data(&self) -> &DATA
pub fn inputs(&self) -> &[NodePort]
pub fn input_refs(&self) -> Vec<PortReference>
pub fn find_input(&self, name: &str) -> Option<&NodePort>
pub fn get_input(&self, index: PortIndex) -> Option<&NodePort>
pub fn add_input<T: Into<String>>(&mut self, port: T) -> PortReference
pub fn outputs(&self) -> &[NodePort]
pub fn output_refs(&self) -> Vec<PortReference>
pub fn find_output(&self, name: &str) -> Option<&NodePort>
pub fn get_output(&self, index: PortIndex) -> Option<&NodePort>
pub fn add_output<T: Into<String>>(&mut self, port: T) -> PortReference
Trait Implementations§
impl<DATA: Eq> Eq for Node<DATA>
Auto Trait Implementations§
impl<DATA> Freeze for Node<DATA>where
DATA: Freeze,
impl<DATA> RefUnwindSafe for Node<DATA>where
DATA: RefUnwindSafe,
impl<DATA> Send for Node<DATA>where
DATA: Send,
impl<DATA> Sync for Node<DATA>where
DATA: Sync,
impl<DATA> Unpin for Node<DATA>where
DATA: Unpin,
impl<DATA> UnwindSafe for Node<DATA>where
DATA: UnwindSafe,
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