pub struct DynRenderable { /* private fields */ }Expand description
A wrapper that provides Clone + Debug for trait-object renderables.
Implementations§
Source§impl DynRenderable
impl DynRenderable
pub fn new(r: impl Renderable + Send + Sync + 'static) -> Self
Trait Implementations§
Source§impl Clone for DynRenderable
impl Clone for DynRenderable
Source§fn clone(&self) -> DynRenderable
fn clone(&self) -> DynRenderable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynRenderable
impl Debug for DynRenderable
Source§impl From<DynRenderable> for RenderItem
impl From<DynRenderable> for RenderItem
Source§fn from(r: DynRenderable) -> Self
fn from(r: DynRenderable) -> Self
Converts to this type from the input type.
Source§impl Renderable for DynRenderable
impl Renderable for DynRenderable
fn render(&self, options: &ConsoleOptions) -> RenderResult
Source§fn measure(&self, _options: &ConsoleOptions) -> Option<Measurement>
fn measure(&self, _options: &ConsoleOptions) -> Option<Measurement>
Optional width-measurement hook (equivalent to
__rich_measure__).
Override to provide min/max width constraints for layout.Auto Trait Implementations§
impl Freeze for DynRenderable
impl !RefUnwindSafe for DynRenderable
impl Send for DynRenderable
impl Sync for DynRenderable
impl Unpin for DynRenderable
impl UnsafeUnpin for DynRenderable
impl !UnwindSafe for DynRenderable
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