pub enum OptionKey {
Value(Value),
None,
}Expand description
Key for matching option branches in BranchStep.
OptionKey is used to route traversers to specific branches based on
computed values. It supports two variants:
Value(Value)- Match a specific valueNone- Default fallback when no other option matches
§Example
use interstellar::traversal::branch::OptionKey;
// Create keys from various types
let key1 = OptionKey::from("person");
let key2 = OptionKey::from(42i64);
let key3 = OptionKey::none();Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for OptionKey
Auto Trait Implementations§
impl Freeze for OptionKey
impl RefUnwindSafe for OptionKey
impl Send for OptionKey
impl Sync for OptionKey
impl Unpin for OptionKey
impl UnsafeUnpin for OptionKey
impl UnwindSafe for OptionKey
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