pub enum PseudoElement<'i> {
Show 30 variants
After,
Before,
FirstLine,
FirstLetter,
DetailsContent,
TargetText,
SearchText,
Selection(VendorPrefix),
Placeholder(VendorPrefix),
HighlightFunction {
name: CustomIdent<'i>,
},
Marker,
Backdrop(VendorPrefix),
FileSelectorButton(VendorPrefix),
WebKitScrollbar(WebKitScrollbarPseudoElement),
Cue,
CueRegion,
CueFunction {
selector: Box<Selector<'i>>,
},
CueRegionFunction {
selector: Box<Selector<'i>>,
},
ViewTransition,
ViewTransitionGroup {
part: ViewTransitionPartSelector<'i>,
},
ViewTransitionImagePair {
part: ViewTransitionPartSelector<'i>,
},
ViewTransitionOld {
part: ViewTransitionPartSelector<'i>,
},
ViewTransitionNew {
part: ViewTransitionPartSelector<'i>,
},
PickerFunction {
identifier: Ident<'i>,
},
PickerIcon,
Checkmark,
GrammarError,
SpellingError,
Custom {
name: CowArcStr<'i>,
},
CustomFunction {
name: CowArcStr<'i>,
arguments: TokenList<'i>,
},
}Expand description
A pseudo element.
Variants§
After
The ::after pseudo element.
Before
The ::before pseudo element.
FirstLine
The ::first-line pseudo element.
FirstLetter
The ::first-letter pseudo element.
DetailsContent
TargetText
The ::target-text
SearchText
The ::search-text pseudo element.
Selection(VendorPrefix)
The ::selection pseudo element.
Placeholder(VendorPrefix)
The ::placeholder pseudo element.
HighlightFunction
The ::highlight() functional pseudo element.
Fields
name: CustomIdent<'i>A custom highlight name.
Marker
The ::marker pseudo element.
Backdrop(VendorPrefix)
The ::backdrop pseudo element.
FileSelectorButton(VendorPrefix)
The ::file-selector-button pseudo element.
WebKitScrollbar(WebKitScrollbarPseudoElement)
A webkit scrollbar pseudo element.
Cue
The ::cue pseudo element.
CueRegion
The ::cue-region pseudo element.
CueFunction
The ::cue() functional pseudo element.
CueRegionFunction
The ::cue-region() functional pseudo element.
ViewTransition
The ::view-transition pseudo element.
ViewTransitionGroup
The ::view-transition-group() functional pseudo element.
Fields
part: ViewTransitionPartSelector<'i>A part name selector.
ViewTransitionImagePair
The ::view-transition-image-pair() functional pseudo element.
Fields
part: ViewTransitionPartSelector<'i>A part name selector.
ViewTransitionOld
The ::view-transition-old() functional pseudo element.
Fields
part: ViewTransitionPartSelector<'i>A part name selector.
ViewTransitionNew
The ::view-transition-new() functional pseudo element.
Fields
part: ViewTransitionPartSelector<'i>A part name selector.
PickerFunction
The ::picker() functional pseudo element.
PickerIcon
The ::picker-icon pseudo element.
Checkmark
The ::checkmark pseudo element.
GrammarError
The ::grammar-error pseudo element.
SpellingError
The ::spelling-error pseudo element.
Custom
An unknown pseudo element.
CustomFunction
An unknown functional pseudo element.
Trait Implementations§
Source§impl<'i> Clone for PseudoElement<'i>
impl<'i> Clone for PseudoElement<'i>
Source§impl<'i> Debug for PseudoElement<'i>
impl<'i> Debug for PseudoElement<'i>
Source§impl<'de: 'i, 'i> Deserialize<'de> for PseudoElement<'i>
Available on crate feature serde only.
impl<'de: 'i, 'i> Deserialize<'de> for PseudoElement<'i>
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<'i> Eq for PseudoElement<'i>
Source§impl<'i> Hash for PseudoElement<'i>
impl<'i> Hash for PseudoElement<'i>
Source§impl<'any, 'i> IntoOwned<'any> for PseudoElement<'i>
Available on crate feature into_owned only.
impl<'any, 'i> IntoOwned<'any> for PseudoElement<'i>
into_owned only.Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Consumes the value and returns an owned clone.
Source§type Owned = PseudoElement<'any>
type Owned = PseudoElement<'any>
Self with a new lifetime.Source§impl<'i> JsonSchema for PseudoElement<'i>
Available on crate feature jsonschema only.
impl<'i> JsonSchema for PseudoElement<'i>
jsonschema only.Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl<'i> PartialEq for PseudoElement<'i>
impl<'i> PartialEq for PseudoElement<'i>
Source§impl<'i> PseudoElement<'i> for PseudoElement<'i>
impl<'i> PseudoElement<'i> for PseudoElement<'i>
Source§fn accepts_state_pseudo_classes(&self) -> bool
fn accepts_state_pseudo_classes(&self) -> bool
Source§fn valid_after_slotted(&self) -> bool
fn valid_after_slotted(&self) -> bool
fn is_webkit_scrollbar(&self) -> bool
fn is_view_transition(&self) -> bool
fn is_unknown(&self) -> bool
Source§impl<'i> Serialize for PseudoElement<'i>
Available on crate feature serde only.
impl<'i> Serialize for PseudoElement<'i>
serde only.impl<'i> StructuralPartialEq for PseudoElement<'i>
Auto Trait Implementations§
impl<'i> Freeze for PseudoElement<'i>
impl<'i> RefUnwindSafe for PseudoElement<'i>
impl<'i> Send for PseudoElement<'i>
impl<'i> Sync for PseudoElement<'i>
impl<'i> Unpin for PseudoElement<'i>
impl<'i> UnsafeUnpin for PseudoElement<'i>
impl<'i> UnwindSafe for PseudoElement<'i>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.