pub struct RenderStrOptions<'a> {
pub style: StyleType,
pub justify: Option<Justify>,
pub overflow: Option<Overflow>,
pub emoji: Option<bool>,
pub markup: Option<bool>,
pub highlight: Option<bool>,
pub highlighter: Option<&'a dyn Highlighter>,
}Expand description
Keyword arguments of upstream’s Console.render_str, for
Console::render_str_with. None takes the console’s default.
Fields§
§style: StyleTypeBase style of the result (style=, default none).
justify: Option<Justify>justify=; None leaves the text’s justify unset.
overflow: Option<Overflow>overflow=; None leaves the text’s overflow unset.
emoji: Option<bool>emoji=: replace emoji codes, or None for the console default.
markup: Option<bool>markup=: parse console markup, or None for the console default.
highlight: Option<bool>highlight=: highlight, or None for the console default.
highlighter: Option<&'a dyn Highlighter>highlighter=: highlight with this instead of the console’s
highlighters (registered ones plus ReprHighlighter).
Trait Implementations§
Source§impl<'a> Clone for RenderStrOptions<'a>
impl<'a> Clone for RenderStrOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RenderStrOptions<'a>
impl<'a> !Send for RenderStrOptions<'a>
impl<'a> !Sync for RenderStrOptions<'a>
impl<'a> !UnwindSafe for RenderStrOptions<'a>
impl<'a> Freeze for RenderStrOptions<'a>
impl<'a> Unpin for RenderStrOptions<'a>
impl<'a> UnsafeUnpin for RenderStrOptions<'a>
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