[][src]Struct cursive::views::BoxedView

pub struct BoxedView { /* fields omitted */ }

A boxed View.

It derefs to the wrapped view.

Implementations

impl BoxedView[src]

pub fn new(view: Box<dyn View + 'static, Global>) -> BoxedView[src]

Creates a new BoxedView around the given boxed view.

pub fn boxed<T>(view: T) -> BoxedView where
    T: IntoBoxedView
[src]

Box the given view

pub fn unwrap(self) -> Box<dyn View + 'static, Global>[src]

Returns the inner boxed view.

Methods from Deref<Target = dyn View + 'static>

pub fn downcast_ref<T>(&self) -> Option<&T> where
    T: Any
[src]

Attempts to downcast self to a concrete type.

pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
    T: Any
[src]

Attempts to downcast self to a concrete type.

pub fn is<T>(&self) -> bool where
    T: Any
[src]

Checks if this view is of type T.

Trait Implementations

impl Deref for BoxedView[src]

type Target = dyn View + 'static

The resulting type after dereferencing.

impl DerefMut for BoxedView[src]

impl ViewWrapper for BoxedView[src]

type V = dyn View + 'static

Type that this view wraps.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AnyView for T where
    T: View
[src]

pub fn as_any(&self) -> &(dyn Any + 'static)[src]

Downcast self to a Any.

pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]

Downcast self to a mutable Any.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Finder for T where
    T: View
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoBoxedView for T where
    T: View
[src]

impl<T> Nameable for T where
    T: View
[src]

impl<T> Resizable for T where
    T: View
[src]

impl<T> Scrollable for T where
    T: View
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> View for T where
    T: ViewWrapper
[src]

impl<T> With for T[src]