[][src]Trait cursive::backend::puppet::observed::ObservedPieceInterface

pub trait ObservedPieceInterface {
    fn min(&self) -> Vec2;
fn max(&self) -> Vec2;
fn parent(&self) -> &ObservedScreen; fn size(&self) -> Vec2 { ... }
fn as_strings(&self) -> Vec<String> { ... }
fn expanded(&self, up_left: Vec2, down_right: Vec2) -> ObservedPiece { ... } }

Represents rectangular piece of observed screen (Puppet backend output)

Required methods

fn min(&self) -> Vec2

Minimums of coordinates

fn max(&self) -> Vec2

Maximums of coordinates

fn parent(&self) -> &ObservedScreen

Reference of ObservablePiece this one is a subsection of or Self

Loading content...

Provided methods

fn size(&self) -> Vec2

Size of piece

fn as_strings(&self) -> Vec<String>

Returns a string representation of consecutive lines of this piece.

fn expanded(&self, up_left: Vec2, down_right: Vec2) -> ObservedPiece

Returns expanded sibling of this piece

Asserts if request can be satisfied.

Loading content...

Trait Implementations

impl Index<XY<usize>> for dyn ObservedPieceInterface[src]

type Output = Option<ObservedCell>

The returned type after indexing.

Implementors

impl ObservedPieceInterface for ObservedScreen[src]

impl<'a> ObservedPieceInterface for ObservedLine<'a>[src]

impl<'a> ObservedPieceInterface for ObservedPiece<'a>[src]

Loading content...