[][src]Enum gtk::CssSectionType

#[non_exhaustive]pub enum CssSectionType {
    // 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.

The section describes a complete document. This section time is the only one where CssSection::get_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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

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

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.