pub enum OrStrategy {
FirstMatch,
BestScore,
}Expand description
Branch selection policy for OrShape.
Variants§
FirstMatch
Return the first accepted branch in registration order.
BestScore
Evaluate every branch and return the accepted branch with best score.
Trait Implementations§
Source§impl Clone for OrStrategy
impl Clone for OrStrategy
Source§fn clone(&self) -> OrStrategy
fn clone(&self) -> OrStrategy
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 moreimpl Copy for OrStrategy
Source§impl Debug for OrStrategy
impl Debug for OrStrategy
impl Eq for OrStrategy
Source§impl PartialEq for OrStrategy
impl PartialEq for OrStrategy
Source§fn eq(&self, other: &OrStrategy) -> bool
fn eq(&self, other: &OrStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrStrategy
Auto Trait Implementations§
impl Freeze for OrStrategy
impl RefUnwindSafe for OrStrategy
impl Send for OrStrategy
impl Sync for OrStrategy
impl Unpin for OrStrategy
impl UnsafeUnpin for OrStrategy
impl UnwindSafe for OrStrategy
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