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<'_> { ... }
}
Expand description

Represents rectangular piece of observed screen (Puppet backend output)

Required Methods

Minimums of coordinates

Maximums of coordinates

Reference of ObservablePiece this one is a subsection of or Self

Provided Methods

Size of piece

Returns a string representation of consecutive lines of this piece.

Returns expanded sibling of this piece

Asserts if request can be satisfied.

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Implementors