pub struct CodeBuilder { /* private fields */ }Implementations§
Source§impl CodeBuilder
impl CodeBuilder
Sourcepub fn font_family(self, family: impl Into<String>) -> Self
pub fn font_family(self, family: impl Into<String>) -> Self
Set the font family of the code block
Sourcepub const fn syntax(self, syntax: Syntax) -> Self
pub const fn syntax(self, syntax: Syntax) -> Self
Set the syntax highlighting language of the code block
Sourcepub const fn line_numbers(self, show: bool) -> Self
pub const fn line_numbers(self, show: bool) -> Self
Toggle line numbers in the code block
pub fn build(self) -> CodeHandle
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeBuilder
impl RefUnwindSafe for CodeBuilder
impl Send for CodeBuilder
impl Sync for CodeBuilder
impl Unpin for CodeBuilder
impl UnsafeUnpin for CodeBuilder
impl UnwindSafe for CodeBuilder
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