Struct console_traits::Col [−][src]
pub struct Col(pub u8);
Describes a vertical column on the screen. Zero is on the left.
Methods
impl Col
[src]
impl Col
pub fn origin() -> Col
[src]
pub fn origin() -> Col
Get the origin
pub fn incr(&mut self) -> &mut Self
[src]
pub fn incr(&mut self) -> &mut Self
pub fn decr(&mut self) -> &mut Self
[src]
pub fn decr(&mut self) -> &mut Self
pub fn bound(&mut self, other: Col) -> &mut Self
[src]
pub fn bound(&mut self, other: Col) -> &mut Self
Trait Implementations
impl Debug for Col
[src]
impl Debug for Col
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialOrd for Col
[src]
impl PartialOrd for Col
fn partial_cmp(&self, other: &Col) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Col) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Col) -> bool
[src]
fn lt(&self, other: &Col) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Col) -> bool
[src]
fn le(&self, other: &Col) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Col) -> bool
[src]
fn gt(&self, other: &Col) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Col) -> bool
[src]
fn ge(&self, other: &Col) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Col
[src]
impl Ord for Col
fn cmp(&self, other: &Col) -> Ordering
[src]
fn cmp(&self, other: &Col) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for Col
[src]
impl PartialEq for Col
fn eq(&self, other: &Col) -> bool
[src]
fn eq(&self, other: &Col) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Col) -> bool
[src]
fn ne(&self, other: &Col) -> bool
This method tests for !=
.
impl Eq for Col
[src]
impl Eq for Col
impl Copy for Col
[src]
impl Copy for Col
impl Clone for Col
[src]
impl Clone for Col
fn clone(&self) -> Col
[src]
fn clone(&self) -> Col
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl From<u8> for Col
[src]
impl From<u8> for Col
impl From<usize> for Col
[src]
impl From<usize> for Col