pub struct CodeBlockOptions {
pub default_language: Option<String>,
pub line_numbers: bool,
}
Expand description
Configuration options for code blocks
Fields§
§default_language: Option<String>
Default language for code blocks that don’t specify one
line_numbers: bool
Whether to add line numbers to code blocks
Trait Implementations§
Source§impl Clone for CodeBlockOptions
impl Clone for CodeBlockOptions
Source§fn clone(&self) -> CodeBlockOptions
fn clone(&self) -> CodeBlockOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CodeBlockOptions
impl Debug for CodeBlockOptions
Source§impl<'de> Deserialize<'de> for CodeBlockOptions
impl<'de> Deserialize<'de> for CodeBlockOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CodeBlockOptions
impl RefUnwindSafe for CodeBlockOptions
impl Send for CodeBlockOptions
impl Sync for CodeBlockOptions
impl Unpin for CodeBlockOptions
impl UnwindSafe for CodeBlockOptions
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