pub enum Preview {
Text(String),
Markup(String),
Renderable(Arc<dyn Renderable + Send + Sync>),
}Expand description
What a preview pane shows for an item.
Variants§
Text(String)
Plain text.
Markup(String)
Console markup ([bold]…[/]).
Renderable(Arc<dyn Renderable + Send + Sync>)
Any renderable: a Syntax, a Table, a Panel.
Implementations§
Source§impl Preview
impl Preview
Sourcepub fn renderable(&self) -> Arc<dyn Renderable + Send + Sync> ⓘ
pub fn renderable(&self) -> Arc<dyn Renderable + Send + Sync> ⓘ
The preview as something to render.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Preview
impl !UnwindSafe for Preview
impl Freeze for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnsafeUnpin for Preview
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