[][src]Struct siraph::Register

pub struct Register { /* fields omitted */ }

A simple structure responsible for registering the inputs and outputs of a node.

Implementations

impl Register[src]

pub fn new<N: ?Sized>(for_node: &N) -> Self[src]

Creates a new empty Register.

pub fn input<T: 'static>(&mut self, name: impl Into<Name>, input: &Input<T>)[src]

Registers an Input<T> for the current node.

Panics

This function panics if the name is already taken or if the given &Input<T> is not part of the node.

pub fn output<T: 'static>(&mut self, name: impl Into<Name>, output: &Output<T>)[src]

Registers an Output<T> for the current node.

Panics

This function panics if the name is already taken or if the given &Output<T> is not part of the node.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.