Trait Style

Source
pub trait Style: Reflect + Struct {
Show 13 methods // Required method fn create() -> Self; // Provided methods fn set_string_reflect(string_reflect: &mut dyn Reflect, value: &str) where Self: Sized { ... } fn set_list_reflect(list_reflect: &mut dyn List, value: &str) where Self: Sized { ... } fn set_struct_reflect(struct_reflect: &mut dyn Struct, value: &str) where Self: Sized { ... } fn set_from_inline_string(&mut self, style: String) -> &Self where Self: Sized { ... } fn inline(&self) -> String where Self: Sized { ... } fn create_value_string(reflect: &dyn Reflect) -> String { ... } fn as_class_string( &self, class_name: &String, ) -> Result<String, &'static str> where Self: Sized { ... } fn as_class(&self, document: &Document) -> Result<String, &'static str> where Self: Sized { ... } fn append_to_head( &self, document: &Document, class_name: &String, class_string: &String, ) where Self: Sized { ... } fn add_as_pseudo_class(&self, document: &Document) where Self: Sized { ... } fn get_struct_name(&self) -> Result<String, &'static str> where Self: Sized { ... } fn debug(self) -> Self where Self: Sized { ... }
}

Required Methods§

Source

fn create() -> Self

Provided Methods§

Source

fn set_string_reflect(string_reflect: &mut dyn Reflect, value: &str)
where Self: Sized,

Source

fn set_list_reflect(list_reflect: &mut dyn List, value: &str)
where Self: Sized,

Source

fn set_struct_reflect(struct_reflect: &mut dyn Struct, value: &str)
where Self: Sized,

Source

fn set_from_inline_string(&mut self, style: String) -> &Self
where Self: Sized,

Source

fn inline(&self) -> String
where Self: Sized,

Source

fn create_value_string(reflect: &dyn Reflect) -> String

Source

fn as_class_string(&self, class_name: &String) -> Result<String, &'static str>
where Self: Sized,

Source

fn as_class(&self, document: &Document) -> Result<String, &'static str>
where Self: Sized,

Source

fn append_to_head( &self, document: &Document, class_name: &String, class_string: &String, )
where Self: Sized,

Source

fn add_as_pseudo_class(&self, document: &Document)
where Self: Sized,

Source

fn get_struct_name(&self) -> Result<String, &'static str>
where Self: Sized,

Source

fn debug(self) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§