pub struct BookMatch { /* private fields */ }Expand description
Resolution details for one explicit book token.
Implementations§
Source§impl BookMatch
impl BookMatch
Sourcepub const fn selected(&self) -> &BookCandidate
pub const fn selected(&self) -> &BookCandidate
Return the selected candidate.
Sourcepub fn alternatives(&self) -> &[BookCandidate]
pub fn alternatives(&self) -> &[BookCandidate]
Return all candidates not selected by the parser.
Sourcepub fn is_ambiguous(&self) -> bool
pub fn is_ambiguous(&self) -> bool
Whether distinct books matched this token.
Trait Implementations§
impl Eq for BookMatch
impl StructuralPartialEq for BookMatch
Auto Trait Implementations§
impl Freeze for BookMatch
impl RefUnwindSafe for BookMatch
impl Send for BookMatch
impl Sync for BookMatch
impl Unpin for BookMatch
impl UnsafeUnpin for BookMatch
impl UnwindSafe for BookMatch
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> Equivalent<K> for Q
impl<Q, K> Equivalent<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.