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

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

Represents rectangular piece of observed screen (Puppet backend output)

Required methods

pub fn min(&self) -> Vec2[src]

Minimums of coordinates

pub fn max(&self) -> Vec2[src]

Maximums of coordinates

pub fn parent(&self) -> &ObservedScreen[src]

Reference of ObservablePiece this one is a subsection of or Self

Loading content...

Provided methods

pub fn size(&self) -> Vec2[src]

Size of piece

pub fn as_strings(&self) -> Vec<String>[src]

Returns a string representation of consecutive lines of this piece.

pub fn expanded(&self, up_left: Vec2, down_right: Vec2) -> ObservedPiece<'_>[src]

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...