#[non_exhaustive]pub enum CssSectionType {
Document,
Import,
ColorDefinition,
BindingSet,
Ruleset,
Selector,
Declaration,
Value,
Keyframes,
}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
Document
The section describes a complete document.
This section time is the only one where CssSection::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§
Source§impl Clone for CssSectionType
impl Clone for CssSectionType
Source§fn clone(&self) -> CssSectionType
fn clone(&self) -> CssSectionType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CssSectionType
Source§impl Debug for CssSectionType
impl Debug for CssSectionType
Source§impl Display for CssSectionType
impl Display for CssSectionType
impl Eq for CssSectionType
Source§impl From<CssSectionType> for Value
impl From<CssSectionType> for Value
Source§fn from(v: CssSectionType) -> Self
fn from(v: CssSectionType) -> Self
Source§impl<'a> FromValue<'a> for CssSectionType
impl<'a> FromValue<'a> for CssSectionType
Source§type Checker = GenericValueTypeChecker<CssSectionType>
type Checker = GenericValueTypeChecker<CssSectionType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for CssSectionType
impl HasParamSpec for CssSectionType
type ParamSpec = ParamSpecEnum
Source§type SetValue = CssSectionType
type SetValue = CssSectionType
type BuilderFn = fn(&str, CssSectionType) -> ParamSpecEnumBuilder<'_, CssSectionType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for CssSectionType
impl Hash for CssSectionType
Source§impl Ord for CssSectionType
impl Ord for CssSectionType
Source§fn cmp(&self, other: &CssSectionType) -> Ordering
fn cmp(&self, other: &CssSectionType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CssSectionType
impl PartialEq for CssSectionType
Source§impl PartialOrd for CssSectionType
impl PartialOrd for CssSectionType
Source§impl StaticType for CssSectionType
impl StaticType for CssSectionType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for CssSectionType
Source§impl ToValue for CssSectionType
impl ToValue for CssSectionType
Source§impl ValueType for CssSectionType
impl ValueType for CssSectionType
Source§type Type = CssSectionType
type Type = CssSectionType
Type from. Read moreAuto Trait Implementations§
impl Freeze for CssSectionType
impl RefUnwindSafe for CssSectionType
impl Send for CssSectionType
impl Sync for CssSectionType
impl Unpin for CssSectionType
impl UnsafeUnpin for CssSectionType
impl UnwindSafe for CssSectionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.