pub struct TokenFlags(/* private fields */);Expand description
Bit flags carried by every token.
Task 15 consumes these; defining the byte now avoids a format-shaped change later (task 12 D5).
Implementations§
Source§impl TokenFlags
impl TokenFlags
Sourcepub const NO_FUZZY: Self
pub const NO_FUZZY: Self
The token must never be fuzzy-matched: an identifier, number, or SKU.
A fuzzy match on i-485 or a ticket id is almost always wrong.
Trait Implementations§
Source§impl Clone for TokenFlags
impl Clone for TokenFlags
impl Copy for TokenFlags
Source§impl Debug for TokenFlags
impl Debug for TokenFlags
Source§impl Default for TokenFlags
impl Default for TokenFlags
impl Eq for TokenFlags
Source§impl Hash for TokenFlags
impl Hash for TokenFlags
Source§impl Ord for TokenFlags
impl Ord for TokenFlags
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TokenFlags
impl PartialEq for TokenFlags
Source§impl PartialOrd for TokenFlags
impl PartialOrd for TokenFlags
impl StructuralPartialEq for TokenFlags
Auto Trait Implementations§
impl Freeze for TokenFlags
impl RefUnwindSafe for TokenFlags
impl Send for TokenFlags
impl Sync for TokenFlags
impl Unpin for TokenFlags
impl UnsafeUnpin for TokenFlags
impl UnwindSafe for TokenFlags
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