pub struct MarkdownReview { /* private fields */ }Implementations§
Source§impl MarkdownReview
impl MarkdownReview
pub fn builder() -> MarkdownReviewBuilder
pub fn render(&mut self, frame: &mut Frame<'_>, area: Rect)
pub fn handle_input( &mut self, input: impl Into<ReviewInput>, ) -> Result<InputOutcome<MarkdownReviewEvent>, MarkdownReviewError>
pub fn handle_command( &mut self, command: impl Into<MarkdownReviewCommand>, ) -> Result<InputOutcome<MarkdownReviewEvent>, MarkdownReviewError>
pub const fn state(&self) -> &MarkdownReviewState
pub fn state_mut(&mut self) -> &mut MarkdownReviewState
pub const fn is_dirty(&self) -> bool
pub fn mark_dirty(&mut self)
pub fn set_document(&mut self, document: impl Into<Arc<MarkdownDocument>>)
pub fn set_theme(&mut self, theme: ReviewTheme)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MarkdownReview
impl RefUnwindSafe for MarkdownReview
impl Send for MarkdownReview
impl Sync for MarkdownReview
impl Unpin for MarkdownReview
impl UnsafeUnpin for MarkdownReview
impl UnwindSafe for MarkdownReview
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more