[][src]Struct cursive::views::LastSizeView

pub struct LastSizeView<T> {
    pub view: T,
    pub size: XY<usize>,
}

Wrapper around a view that remembers its size.

Fields

view: T

Wrapped view.

size: XY<usize>

Cached size from the last layout() call.

Implementations

impl<T> LastSizeView<T>[src]

pub fn new(view: T) -> LastSizeView<T>[src]

Wraps the given view.

pub fn get_inner(&self) -> &T[src]

Gets access to the inner view.

pub fn get_inner_mut(&mut self) -> &mut T[src]

Gets mutable access to the inner view.

Trait Implementations

impl<V> Default for LastSizeView<V> where
    V: Default
[src]

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

type V = T

Type that this view wraps.

Auto Trait Implementations

impl<T> RefUnwindSafe for LastSizeView<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for LastSizeView<T> where
    T: Send
[src]

impl<T> Sync for LastSizeView<T> where
    T: Sync
[src]

impl<T> Unpin for LastSizeView<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for LastSizeView<T> where
    T: UnwindSafe
[src]

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]