Struct nginx_config::Pos [−][src]
Original position of element in source code
Fields
line: usize
One-based line number
column: usize
One-based column number
Trait Implementations
impl PartialOrd for Pos
[src]
impl PartialOrd for Pos
fn partial_cmp(&self, other: &Pos) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Pos) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Pos) -> bool
[src]
fn lt(&self, other: &Pos) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Pos) -> bool
[src]
fn le(&self, other: &Pos) -> 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: &Pos) -> bool
[src]
fn gt(&self, other: &Pos) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Pos) -> bool
[src]
fn ge(&self, other: &Pos) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Pos
[src]
impl Ord for Pos
fn cmp(&self, other: &Pos) -> Ordering
[src]
fn cmp(&self, other: &Pos) -> 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 Pos
[src]
impl PartialEq for Pos
fn eq(&self, other: &Pos) -> bool
[src]
fn eq(&self, other: &Pos) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Pos) -> bool
[src]
fn ne(&self, other: &Pos) -> bool
This method tests for !=
.
impl Eq for Pos
[src]
impl Eq for Pos
impl Clone for Pos
[src]
impl Clone for Pos
fn clone(&self) -> Pos
[src]
fn clone(&self) -> Pos
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 Copy for Pos
[src]
impl Copy for Pos
impl Default for Pos
[src]
impl Default for Pos
impl Debug for Pos
[src]
impl Debug for Pos
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 Display for Pos
[src]
impl Display for Pos