pub enum Node {
Operation(Operation),
Placeholder(Placeholder),
}
Variants§
Operation(Operation)
Placeholder(Placeholder)
Implementations§
Source§impl Node
impl Node
Sourcepub const fn is_operation(&self) -> bool
pub const fn is_operation(&self) -> bool
Returns true if the enum is Node::Operation otherwise false
Sourcepub const fn is_placeholder(&self) -> bool
pub const fn is_placeholder(&self) -> bool
Returns true if the enum is Node::Placeholder otherwise false
Source§impl Node
impl Node
pub fn operation( inputs: impl IntoIterator<Item = NodeIndex>, op: impl Into<Op>, ) -> Self
pub fn placeholder(name: impl ToString) -> Self
pub fn id(&self) -> AtomicId
pub fn inputs(&self) -> Option<&[NodeIndex]>
pub fn name(&self) -> &str
pub fn op(&self) -> Option<&Op>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Node
impl Ord for Node
Source§impl PartialOrd for Node
impl PartialOrd for Node
Source§impl VariantNames for Node
impl VariantNames for Node
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.