pub struct MarkdownReviewBuilder<T = ()> { /* private fields */ }Implementations§
Source§impl<T> MarkdownReviewBuilder<T>
impl<T> MarkdownReviewBuilder<T>
pub fn markdown( self, source: impl AsRef<str>, ) -> MarkdownReviewBuilder<Arc<MarkdownDocument>>
pub fn document( self, document: impl Into<Arc<MarkdownDocument>>, ) -> MarkdownReviewBuilder<Arc<MarkdownDocument>>
pub fn embedded(self) -> Self
pub fn theme(self, theme: ReviewTheme) -> Self
pub fn theme_choices(self, themes: impl Into<Arc<[ThemeChoice]>>) -> Self
pub fn options(self, options: ReviewOptions) -> Self
pub fn borders(self, visible: bool) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn capabilities(self, capabilities: ReviewCapabilities) -> Self
pub fn bind( self, key: impl Into<KeyEvent>, command: impl Into<MarkdownReviewCommand>, ) -> Self
pub fn binding(self, binding: KeyBinding<MarkdownReviewCommand>) -> Self
pub fn keybindings( self, bindings: impl Into<Vec<KeyBinding<MarkdownReviewCommand>>>, ) -> Self
Source§impl MarkdownReviewBuilder<Arc<MarkdownDocument>>
impl MarkdownReviewBuilder<Arc<MarkdownDocument>>
pub fn build(self) -> MarkdownReview
Trait Implementations§
Source§impl<T: Debug> Debug for MarkdownReviewBuilder<T>
impl<T: Debug> Debug for MarkdownReviewBuilder<T>
Auto Trait Implementations§
impl<T> Freeze for MarkdownReviewBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for MarkdownReviewBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for MarkdownReviewBuilder<T>where
T: Send,
impl<T> Sync for MarkdownReviewBuilder<T>where
T: Sync,
impl<T> Unpin for MarkdownReviewBuilder<T>where
T: Unpin,
impl<T> UnsafeUnpin for MarkdownReviewBuilder<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MarkdownReviewBuilder<T>where
T: UnwindSafe,
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