pub struct CodeConfigBuilder { /* private fields */ }Expand description
Builder for CodeConfig.
Implementations§
Source§impl CodeConfigBuilder
impl CodeConfigBuilder
pub fn font_family<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Breadcrumbs is a useful and unique feature of CodeSnap, it can help users to understand the
code location in the project. If the has_breadcrumbs is true, CodeSnap will display the
file_path on top of the code.
The code snapshot is different from normal screenshots, it should provide more information about the code, such as the file path, the line number and highlight code line, these information can help users to understand the code better.
Sourcepub fn build(&self) -> Result<CodeConfig, CodeConfigBuilderError>
pub fn build(&self) -> Result<CodeConfig, CodeConfigBuilderError>
Trait Implementations§
Source§impl Clone for CodeConfigBuilder
impl Clone for CodeConfigBuilder
Source§fn clone(&self) -> CodeConfigBuilder
fn clone(&self) -> CodeConfigBuilder
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 moreAuto Trait Implementations§
impl Freeze for CodeConfigBuilder
impl RefUnwindSafe for CodeConfigBuilder
impl Send for CodeConfigBuilder
impl Sync for CodeConfigBuilder
impl Unpin for CodeConfigBuilder
impl UnwindSafe for CodeConfigBuilder
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