[−][src]Struct atelier_core::model::shapes::Operation
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]
fn has_member_named(&self, member_name: &Identifier) -> bool
[src]
fn get_member_named(&self, member_name: &Identifier) -> Option<&Member>
[src]
fn set_member(&mut self, member: Member) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,