Struct presenterm::HighlightThemeSet
source · pub struct HighlightThemeSet { /* private fields */ }Implementations§
source§impl HighlightThemeSet
impl HighlightThemeSet
sourcepub fn load_by_name(&self, name: &str) -> Option<CodeHighlighter>
pub fn load_by_name(&self, name: &str) -> Option<CodeHighlighter>
Construct a new highlighter using the given syntect theme name.
sourcepub fn register_from_directory<P: AsRef<Path>>(
&mut self,
path: P
) -> Result<(), LoadingError>
pub fn register_from_directory<P: AsRef<Path>>( &mut self, path: P ) -> Result<(), LoadingError>
Register all highlighting themes in the given directory.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HighlightThemeSet
impl !Send for HighlightThemeSet
impl !Sync for HighlightThemeSet
impl Unpin for HighlightThemeSet
impl UnwindSafe for HighlightThemeSet
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().