[][src]Struct atelier_core::model::shapes::Operation

pub struct Operation { /* fields omitted */ }

Corresponds to the "operation" shape.

Implementations

impl Operation[src]

pub fn has_input(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn input(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_input(&mut self, input: ShapeID)[src]

Set the current value of this member.

pub fn unset_input(&mut self)[src]

Set the current value of this member to None.

pub fn has_output(&self) -> bool[src]

Returns true if this shape has a value for this member, else false.

pub fn output(&self) -> Option<&ShapeID>[src]

Return the current value of this member.

pub fn set_output(&mut self, output: ShapeID)[src]

Set the current value of this member.

pub fn unset_output(&mut self)[src]

Set the current value of this member to None.

pub fn has_errors(&self) -> bool[src]

Returns true if this member's collection has any elements, else false.

pub fn errors(&self) -> impl Iterator<Item = &ShapeID>[src]

Return an iterator over all elements in this member's collection.

pub fn add_error(&mut self, error: ShapeID)[src]

Add an element to this member's collection.

pub fn append_errors(&mut self, errors: &[ShapeID])[src]

Add all these elements to this member's collection.

pub fn remove_error(&mut self, error: &ShapeID)[src]

Remove an element, with the given identifier, to this member's collection.

Trait Implementations

impl Clone for Operation[src]

impl Debug for Operation[src]

impl Default for Operation[src]

impl HasMembers for Operation[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.