pub struct TokenList {
pub v: AllocVec<TokenOrValue, Global>,
}Expand description
PERF: nullable optimization
Fields§
§v: AllocVec<TokenOrValue, Global>Implementations§
Source§impl TokenList
impl TokenList
pub fn to_css( &self, dest: &mut Printer<'_>, is_custom_property: bool, ) -> Result<(), PrintErr>
pub fn to_css_raw(&self, dest: &mut Printer<'_>) -> Result<(), PrintErr>
pub fn write_whitespace_if_needed( &self, i: usize, dest: &mut Printer<'_>, ) -> Result<bool, PrintErr>
pub fn parse( input: &mut Parser<'_>, options: &ParserOptions<'_>, depth: usize, ) -> Result<TokenList>
pub fn parse_with_options( input: &mut Parser<'_>, options: &ParserOptions<'_>, ) -> Result<TokenList>
pub fn parse_raw( input: &mut Parser<'_>, tokens: &mut AllocVec<TokenOrValue, Global>, options: &ParserOptions<'_>, depth: usize, ) -> Result<()>
pub fn parse_into( input: &mut Parser<'_>, tokens: &mut AllocVec<TokenOrValue, Global>, options: &ParserOptions<'_>, depth: usize, ) -> Result<()>
pub fn get_fallback(&self, bump: &Arena, kind: ColorFallbackKind) -> Self
pub fn get_fallbacks( &mut self, bump: &Arena, targets: &Targets, ) -> SmallList<(SupportsCondition, TokenList), 2>
pub fn get_necessary_fallbacks(&self, targets: &Targets) -> ColorFallbackKind
Trait Implementations§
Auto Trait Implementations§
impl !Send for TokenList
impl !Sync for TokenList
impl Freeze for TokenList
impl RefUnwindSafe for TokenList
impl Unpin for TokenList
impl UnsafeUnpin for TokenList
impl UnwindSafe for TokenList
Blanket Implementations§
Source§impl<T> AsCtxPtr for Twhere
T: ?Sized,
impl<T> AsCtxPtr for Twhere
T: ?Sized,
Source§fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
self’s address as *mut Self for deferred-task / scopeguard /
RefPtr::init_ref ctx slots. The closures/trampolines deref it as shared
(&*p) — every method they reach is &self post-R-2, so no write
provenance is required; the *mut spelling is purely to match the
existing HasAutoFlush / RefCount ABI.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