pub struct ClassifyBranch {
pub label: String,
pub nodes: Vec<usize>,
}Expand description
One branch of a NodeKind::Classify node: a label and the node indices to enable when the
classifier’s result selects that label. The other branches’ nodes are pruned (failed) so they
never run — this is how a classify node yields conditional edges in an otherwise static DAG.
Fields§
§label: String§nodes: Vec<usize>Trait Implementations§
Source§impl Clone for ClassifyBranch
impl Clone for ClassifyBranch
Source§fn clone(&self) -> ClassifyBranch
fn clone(&self) -> ClassifyBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassifyBranch
impl Debug for ClassifyBranch
Source§impl<'de> Deserialize<'de> for ClassifyBranch
impl<'de> Deserialize<'de> for ClassifyBranch
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
impl Eq for ClassifyBranch
Source§impl PartialEq for ClassifyBranch
impl PartialEq for ClassifyBranch
Source§fn eq(&self, other: &ClassifyBranch) -> bool
fn eq(&self, other: &ClassifyBranch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClassifyBranch
impl Serialize for ClassifyBranch
impl StructuralPartialEq for ClassifyBranch
Auto Trait Implementations§
impl Freeze for ClassifyBranch
impl RefUnwindSafe for ClassifyBranch
impl Send for ClassifyBranch
impl Sync for ClassifyBranch
impl Unpin for ClassifyBranch
impl UnsafeUnpin for ClassifyBranch
impl UnwindSafe for ClassifyBranch
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