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§
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) -> &Selfwhere
Self: Sized,
fn inline(&self) -> Stringwhere
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) -> Selfwhere
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.