pub struct SyntectAdapterBuilder { /* private fields */ }
Available on crate feature
syntect
only.Expand description
A builder for SyntectAdapter
.
Implementations§
Source§impl SyntectAdapterBuilder
impl SyntectAdapterBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new empty SyntectAdapterBuilder
.
Sourcepub fn syntax_set(self, s: SyntaxSet) -> Self
pub fn syntax_set(self, s: SyntaxSet) -> Self
Set the syntax set.
Sourcepub fn build(self) -> SyntectAdapter
pub fn build(self) -> SyntectAdapter
Builds the SyntectAdapter
. Default values:
theme
:InspiredGitHub
syntax_set
:SyntaxSet::load_defaults_newlines()
theme_set
:ThemeSet::load_defaults()
Trait Implementations§
Source§impl Debug for SyntectAdapterBuilder
impl Debug for SyntectAdapterBuilder
Auto Trait Implementations§
impl !Freeze for SyntectAdapterBuilder
impl RefUnwindSafe for SyntectAdapterBuilder
impl Send for SyntectAdapterBuilder
impl Sync for SyntectAdapterBuilder
impl Unpin for SyntectAdapterBuilder
impl UnwindSafe for SyntectAdapterBuilder
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