pub enum ConsumerQuery<'a> {
MemberBinding {
alias: &'a str,
leaf_paths: &'a FxHashSet<String>,
},
StyleXThemeGroup {
contract_alias: &'a str,
leaf_paths: &'a FxHashSet<String>,
},
PandaTokenCall {
alias: &'a str,
leaf_paths: &'a FxHashSet<String>,
},
PandaStyleValues {
aliases: &'a FxHashSet<String>,
leaf_paths: &'a FxHashSet<String>,
},
ThemeReads {
leaf_paths: &'a FxHashSet<String>,
},
}Expand description
One attribution query to run against a single parsed consumer source. A scan runs any mix of queries against ONE parse of the source.
Variants§
MemberBinding
Member-access reads <alias>.a.b of an imported token binding. A read is
a hit only when a.b is a defined leaf path, not an intermediate group.
Fields
StyleXThemeGroup
StyleX createTheme(contract, ...) applies the complete resolved
variable group, including partial and empty reset themes.
Fields
PandaTokenCall
PandaCSS token('a.b') calls through the given alias.
Fields
PandaStyleValues
PandaCSS style-call object values naming token paths.
Fields
ThemeReads
styled-components / Emotion theme reads (theme.colors.x), including
props.theme.colors.x.
Auto Trait Implementations§
impl<'a> Freeze for ConsumerQuery<'a>
impl<'a> RefUnwindSafe for ConsumerQuery<'a>
impl<'a> Send for ConsumerQuery<'a>
impl<'a> Sync for ConsumerQuery<'a>
impl<'a> Unpin for ConsumerQuery<'a>
impl<'a> UnsafeUnpin for ConsumerQuery<'a>
impl<'a> UnwindSafe for ConsumerQuery<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more