#[repr(u32,)]
pub enum ArchivedTokenwhere
    With<JsWord, EncodeJsWord>: Archive,
    Atom: Archive,
    bool: Archive,
    Box<UrlKeyValue>: Archive,
    char: Archive,
    f64: Archive,
    NumberType: Archive,
    Box<DimensionToken>: Archive,{
Show 24 variants Ident { value: Archived<With<JsWord, EncodeJsWord>>, raw: Archived<Atom>, }, Function { value: Archived<With<JsWord, EncodeJsWord>>, raw: Archived<Atom>, }, AtKeyword { value: Archived<With<JsWord, EncodeJsWord>>, raw: Archived<Atom>, }, Hash { is_id: Archived<bool>, value: Archived<With<JsWord, EncodeJsWord>>, raw: Archived<Atom>, }, String { value: Archived<With<JsWord, EncodeJsWord>>, raw: Archived<Atom>, }, BadString { raw: Archived<Atom>, }, Url { value: Archived<With<JsWord, EncodeJsWord>>, raw: Archived<Box<UrlKeyValue>>, }, BadUrl { raw: Archived<Atom>, }, Delim { value: Archived<char>, }, Number { value: Archived<f64>, raw: Archived<Atom>, type_flag: Archived<NumberType>, }, Percentage { value: Archived<f64>, raw: Archived<Atom>, }, Dimension(Archived<Box<DimensionToken>>), WhiteSpace { value: Archived<Atom>, }, CDO, CDC, Colon, Semi, Comma, LBracket, RBracket, LParen, RParen, LBrace, RBrace,
}
Expand description

An archived Token

Variants§

§

Ident

Fields

§value: Archived<With<JsWord, EncodeJsWord>>

The archived counterpart of Token::Ident::value

§raw: Archived<Atom>

The archived counterpart of Token::Ident::raw

The archived counterpart of Token::Ident

§

Function

Fields

§value: Archived<With<JsWord, EncodeJsWord>>

The archived counterpart of Token::Function::value

§raw: Archived<Atom>

The archived counterpart of Token::Function::raw

The archived counterpart of Token::Function

§

AtKeyword

Fields

§value: Archived<With<JsWord, EncodeJsWord>>

The archived counterpart of Token::AtKeyword::value

§raw: Archived<Atom>

The archived counterpart of Token::AtKeyword::raw

The archived counterpart of Token::AtKeyword

§

Hash

Fields

§is_id: Archived<bool>

The archived counterpart of Token::Hash::is_id

§value: Archived<With<JsWord, EncodeJsWord>>

The archived counterpart of Token::Hash::value

§raw: Archived<Atom>

The archived counterpart of Token::Hash::raw

The archived counterpart of Token::Hash

§

String

Fields

§value: Archived<With<JsWord, EncodeJsWord>>

The archived counterpart of Token::String::value

§raw: Archived<Atom>

The archived counterpart of Token::String::raw

The archived counterpart of Token::String

§

BadString

Fields

§raw: Archived<Atom>

The archived counterpart of Token::BadString::raw

The archived counterpart of Token::BadString

§

Url

Fields

§value: Archived<With<JsWord, EncodeJsWord>>

The archived counterpart of Token::Url::value

§raw: Archived<Box<UrlKeyValue>>

The archived counterpart of Token::Url::raw

The archived counterpart of Token::Url

§

BadUrl

Fields

§raw: Archived<Atom>

The archived counterpart of Token::BadUrl::raw

The archived counterpart of Token::BadUrl

§

Delim

Fields

§value: Archived<char>

The archived counterpart of Token::Delim::value

The archived counterpart of Token::Delim

§

Number

Fields

§value: Archived<f64>

The archived counterpart of Token::Number::value

§raw: Archived<Atom>

The archived counterpart of Token::Number::raw

§type_flag: Archived<NumberType>

The archived counterpart of Token::Number::type_flag

The archived counterpart of Token::Number

§

Percentage

Fields

§value: Archived<f64>

The archived counterpart of Token::Percentage::value

§raw: Archived<Atom>

The archived counterpart of Token::Percentage::raw

The archived counterpart of Token::Percentage

§

Dimension(Archived<Box<DimensionToken>>)

Tuple Fields

§0: Archived<Box<DimensionToken>>

The archived counterpart of Token::Dimension::0

The archived counterpart of Token::Dimension

§

WhiteSpace

Fields

§value: Archived<Atom>

The archived counterpart of Token::WhiteSpace::value

The archived counterpart of Token::WhiteSpace

§

CDO

The archived counterpart of Token::CDO

§

CDC

The archived counterpart of Token::CDC

§

Colon

The archived counterpart of Token::Colon

§

Semi

The archived counterpart of Token::Semi

§

Comma

The archived counterpart of Token::Comma

§

LBracket

The archived counterpart of Token::LBracket

§

RBracket

The archived counterpart of Token::RBracket

§

LParen

The archived counterpart of Token::LParen

§

RParen

The archived counterpart of Token::RParen

§

LBrace

The archived counterpart of Token::LBrace

§

RBrace

The archived counterpart of Token::RBrace

Trait Implementations§

source§

impl<__C: ?Sized> CheckBytes<__C> for ArchivedTokenwhere With<JsWord, EncodeJsWord>: Archive, Atom: Archive, bool: Archive, Box<UrlKeyValue>: Archive, char: Archive, f64: Archive, NumberType: Archive, Box<DimensionToken>: Archive, Archived<With<JsWord, EncodeJsWord>>: CheckBytes<__C>, Archived<Atom>: CheckBytes<__C>, Archived<bool>: CheckBytes<__C>, Archived<Box<UrlKeyValue>>: CheckBytes<__C>, Archived<char>: CheckBytes<__C>, Archived<f64>: CheckBytes<__C>, Archived<NumberType>: CheckBytes<__C>, Archived<Box<DimensionToken>>: CheckBytes<__C>,

§

type Error = EnumCheckError<u32>

The error that may result from checking the type.
source§

unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C ) -> Result<&'__bytecheck Self, EnumCheckError<u32>>

Checks whether the given pointer points to a valid value within the given context. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

source§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> LayoutRaw for T

source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
source§

impl<T> Pointable for T

source§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more