pub struct Node {
pub tests: &'static [(Test, u32)],
pub wildcard: Option<(&'static str, u32)>,
pub accept: Option<u32>,
}Expand description
One node of the trie over the patterns.
Fields§
§tests: &'static [(Test, u32)]The tests to try, in the order the rules were written, before the wildcard.
wildcard: Option<(&'static str, u32)>The branch that takes anything, and the name the first rule to reach it gave that hole.
accept: Option<u32>The rule that ends here, if one does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin 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