pub struct RenderedOutput { /* private fields */ }Expand description
A rendered string together with the tokenizer completion status.
Implementations§
Source§impl RenderedOutput
impl RenderedOutput
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the result and returns the rendered text.
Sourcepub fn status(&self) -> HighlightStatus
pub fn status(&self) -> HighlightStatus
Reports whether tokenization completed without exhausting a safety budget.
Trait Implementations§
Source§impl Clone for RenderedOutput
impl Clone for RenderedOutput
Source§impl Debug for RenderedOutput
impl Debug for RenderedOutput
impl Eq for RenderedOutput
Source§impl PartialEq for RenderedOutput
impl PartialEq for RenderedOutput
impl StructuralPartialEq for RenderedOutput
Auto Trait Implementations§
impl Freeze for RenderedOutput
impl RefUnwindSafe for RenderedOutput
impl Send for RenderedOutput
impl Sync for RenderedOutput
impl Unpin for RenderedOutput
impl UnsafeUnpin for RenderedOutput
impl UnwindSafe for RenderedOutput
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