pub struct PhpHighlighter {
pub use_parser: bool,
}Expand description
A highlighter for PHP code.
Fields§
§use_parser: boolWhether to use the parser for highlighting.
Implementations§
Source§impl PhpHighlighter
impl PhpHighlighter
Sourcepub fn with_parser() -> Self
pub fn with_parser() -> Self
Creates a new PhpHighlighter that uses the parser.
Trait Implementations§
Source§impl Default for PhpHighlighter
impl Default for PhpHighlighter
Source§impl Highlighter for PhpHighlighter
impl Highlighter for PhpHighlighter
Auto Trait Implementations§
impl Freeze for PhpHighlighter
impl RefUnwindSafe for PhpHighlighter
impl Send for PhpHighlighter
impl Sync for PhpHighlighter
impl Unpin for PhpHighlighter
impl UnsafeUnpin for PhpHighlighter
impl UnwindSafe for PhpHighlighter
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