pub struct CssFallbackChain {
pub tokens: Vec<String>,
pub has_literal_fallback: bool,
}Expand description
A CSS var() fallback chain that needs theme or local CSS coverage.
Fields§
§tokens: Vec<String>Candidate custom property names in browser fallback order, without --.
has_literal_fallback: boolWhether the CSS chain ends in a non-token literal fallback.
When true, the chain is valid even if no candidate token exists in a theme because the browser can use the literal fallback.
Trait Implementations§
Source§impl Clone for CssFallbackChain
impl Clone for CssFallbackChain
Source§fn clone(&self) -> CssFallbackChain
fn clone(&self) -> CssFallbackChain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CssFallbackChain
impl Debug for CssFallbackChain
impl Eq for CssFallbackChain
Source§impl PartialEq for CssFallbackChain
impl PartialEq for CssFallbackChain
impl StructuralPartialEq for CssFallbackChain
Auto Trait Implementations§
impl Freeze for CssFallbackChain
impl RefUnwindSafe for CssFallbackChain
impl Send for CssFallbackChain
impl Sync for CssFallbackChain
impl Unpin for CssFallbackChain
impl UnsafeUnpin for CssFallbackChain
impl UnwindSafe for CssFallbackChain
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