pub struct Styles { /* private fields */ }
Implementations§
Source§impl Styles
impl Styles
pub fn new() -> Styles
pub fn add_style(self, style: Style) -> Self
pub fn default_size(self, size: usize) -> Self
pub fn default_spacing(self, spacing: i32) -> Self
pub fn default_fonts(self, font: RunFonts) -> Self
pub fn find_style_by_id(&self, id: &str) -> Option<&Style>
pub fn create_heading_style_map(&self) -> HashMap<String, usize>
Trait Implementations§
impl StructuralPartialEq for Styles
Auto Trait Implementations§
impl Freeze for Styles
impl RefUnwindSafe for Styles
impl Send for Styles
impl Sync for Styles
impl Unpin for Styles
impl UnwindSafe for Styles
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
Mutably borrows from an owned value. Read more