Skip to main content

GraphQLTriviaTokenVec

Type Alias GraphQLTriviaTokenVec 

Source
pub type GraphQLTriviaTokenVec<'src> = SmallVec<[GraphQLTriviaToken<'src>; 2]>;
Expand description

Type alias for trivia storage. Uses SmallVec to avoid heap allocation for the common case of 0-2 trivia items per token.

The 'src lifetime matches the source text lifetime from the token source.

Aliased Typeยง

pub struct GraphQLTriviaTokenVec<'src> { /* private fields */ }