Enum gtk::CssSectionType [−][src]
#[non_exhaustive] pub enum CssSectionType { Document, Import, ColorDefinition, BindingSet, Ruleset, Selector, Declaration, Value, Keyframes, // some variants omitted }
Expand description
The different types of sections indicate parts of a CSS document as parsed by GTK’s CSS parser. They are oriented towards the CSS Grammar, but may contain extensions.
More types might be added in the future as the parser incorporates more features.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The section describes a complete document.
This section time is the only one where CssSection::parent()
might return None
.
The section defines an import rule.
The section defines a color. This is a GTK extension to CSS.
The section defines a binding set. This is a GTK extension to CSS.
The section defines a CSS ruleset.
The section defines a CSS selector.
The section defines the declaration of a CSS variable.
The section defines the value of a CSS declaration.
The section defines keyframes. See CSS Animations for details. Since 3.6
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for CssSectionType
impl Send for CssSectionType
impl Sync for CssSectionType
impl Unpin for CssSectionType
impl UnwindSafe for CssSectionType
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.