pub struct Vector { /* private fields */ }
Expand description

A directional vector with no positional information.

Implementations

Create a new, immutable vector.

Examples
use tty_interface::Vector;

let size = Vector::new(7, 4);
assert_eq!(7, size.x());
assert_eq!(4, size.y());

This vector’s column value.

This vector’s line value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.