pub enum HashType {
Id,
Unrestricted,
}Expand description
The type flag on a <hash-token> (§4.1, §4.3.4).
Per §4.3.4, when consuming an ident-like token starting with #:
- If the following code points would start an ident sequence (§4.3.9), the hash type is “id”.
- Otherwise, if the following code points are hex digits, the hash type is “unrestricted”.
- Otherwise (no ident sequence, no hex digits), the hash is still “unrestricted” with an empty value.
Variants§
Id
# followed by an ident sequence. Matches the ID selector syntax.
Unrestricted
# followed by something that isn’t an ident sequence (e.g. hex
digits, or empty).
Trait Implementations§
impl Copy for HashType
impl Eq for HashType
impl StructuralPartialEq for HashType
Auto Trait Implementations§
impl Forget for HashType
impl Freeze for HashType
impl RefUnwindSafe for HashType
impl Send for HashType
impl Sync for HashType
impl Unpin for HashType
impl UnsafeUnpin for HashType
impl UnwindSafe for HashType
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