pub struct SyntaxHighlightingDefaults;Expand description
Shared defaults for syntax highlighting configuration.
Implementations§
Source§impl SyntaxHighlightingDefaults
impl SyntaxHighlightingDefaults
Sourcepub fn cache_themes() -> bool
pub fn cache_themes() -> bool
Whether theme caching is enabled by default.
Sourcepub fn max_file_size_mb() -> usize
pub fn max_file_size_mb() -> usize
Default maximum file size (in megabytes) that will be highlighted.
Sourcepub fn highlight_timeout_ms() -> u64
pub fn highlight_timeout_ms() -> u64
Default timeout (in milliseconds) for highlighting operations.
Sourcepub fn min_highlight_timeout_ms() -> u64
pub fn min_highlight_timeout_ms() -> u64
Minimum supported highlight timeout.
Sourcepub fn min_file_size_mb() -> usize
pub fn min_file_size_mb() -> usize
Minimum supported highlighted file size.
Sourcepub fn enabled_languages() -> Vec<String>
pub fn enabled_languages() -> Vec<String>
Default list of enabled languages.
Auto Trait Implementations§
impl Freeze for SyntaxHighlightingDefaults
impl RefUnwindSafe for SyntaxHighlightingDefaults
impl Send for SyntaxHighlightingDefaults
impl Sync for SyntaxHighlightingDefaults
impl Unpin for SyntaxHighlightingDefaults
impl UnwindSafe for SyntaxHighlightingDefaults
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