[][src]Enum gtk::CssSectionType

#[non_exhaustive]pub enum CssSectionType {
    Document,
    Import,
    ColorDefinition,
    BindingSet,
    Ruleset,
    Selector,
    Declaration,
    Value,
    Keyframes,
    // some variants omitted
}

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)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Document

The section describes a complete document. This section time is the only one where CssSection::get_parent might return None.

Import

The section defines an import rule.

ColorDefinition

The section defines a color. This is a GTK extension to CSS.

BindingSet

The section defines a binding set. This is a GTK extension to CSS.

Ruleset

The section defines a CSS ruleset.

Selector

The section defines a CSS selector.

Declaration

The section defines the declaration of a CSS variable.

Value

The section defines the value of a CSS declaration.

Keyframes

The section defines keyframes. See CSS Animations for details. Since 3.6

Trait Implementations

impl Clone for CssSectionType[src]

impl Copy for CssSectionType[src]

impl Debug for CssSectionType[src]

impl Display for CssSectionType[src]

impl Eq for CssSectionType[src]

impl<'a> FromValue<'a> for CssSectionType[src]

impl<'a> FromValueOptional<'a> for CssSectionType[src]

impl Hash for CssSectionType[src]

impl Ord for CssSectionType[src]

impl PartialEq<CssSectionType> for CssSectionType[src]

impl PartialOrd<CssSectionType> for CssSectionType[src]

impl SetValue for CssSectionType[src]

impl StaticType for CssSectionType[src]

impl StructuralEq for CssSectionType[src]

impl StructuralPartialEq for CssSectionType[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.