pub trait Render<'header> {
Show methods
fn header(&self) -> Ref<'_, Header<'header>>;
fn render(&self, opts: &Options) -> Result<String, Error>;
fn tag(&self) -> Option<&str> { ... }
fn attributes(&self) -> Option<&HashMap<String, String>> { ... }
fn extra_attributes(&self) -> Option<&HashMap<String, String>> { ... }
fn attribute_as_pixel(&self, name: &str) -> Option<Pixel> { ... }
fn attribute_as_size(&self, name: &str) -> Option<Size> { ... }
fn attribute_as_spacing(&self, name: &str) -> Option<Spacing> { ... }
fn attribute_equals(&self, key: &str, value: &str) -> bool { ... }
fn attribute_exists(&self, key: &str) -> bool { ... }
fn get_border_left(&self) -> Option<Pixel> { ... }
fn get_border_right(&self) -> Option<Pixel> { ... }
fn get_border_horizontal(&self) -> Pixel { ... }
fn get_inner_border_left(&self) -> Option<Pixel> { ... }
fn get_inner_border_right(&self) -> Option<Pixel> { ... }
fn get_padding_top(&self) -> Option<Pixel> { ... }
fn get_padding_bottom(&self) -> Option<Pixel> { ... }
fn get_padding_left(&self) -> Option<Pixel> { ... }
fn get_padding_right(&self) -> Option<Pixel> { ... }
fn get_padding_horizontal(&self) -> Pixel { ... }
fn get_padding_vertical(&self) -> Pixel { ... }
fn get_width(&self) -> Option<Size> { ... }
fn default_attribute(&self, _key: &str) -> Option<&str> { ... }
fn attribute(&self, key: &str) -> Option<String> { ... }
fn attribute_size(&self, key: &str) -> Option<Size> { ... }
fn attribute_pixel(&self, key: &str) -> Option<Pixel> { ... }
fn set_style(&self, _name: &str, tag: Tag) -> Tag { ... }
fn set_container_width(&mut self, _width: Option<Pixel>) { ... }
fn set_index(&mut self, _index: usize) { ... }
fn set_siblings(&mut self, _count: usize) { ... }
fn set_raw_siblings(&mut self, _count: usize) { ... }
fn add_extra_attribute(&mut self, _key: &str, _value: &str) { ... }
fn maybe_add_extra_attribute(&mut self, key: &str, value: Option<String>) { ... }
fn render_fragment(
&self,
name: &str,
opts: &Options
) -> Result<String, Error> { ... }
}
Loading content...Loading content...Loading content...