Struct chomp::types::numbering::LineNumber [] [src]

pub struct LineNumber(pub u64);

Struct counting the number of newlines (b'\n').

Methods

impl LineNumber
[src]

Creates a new line-number counter with zero.

Trait Implementations

impl Debug for LineNumber
[src]

Formats the value using the given formatter.

impl Copy for LineNumber
[src]

impl Clone for LineNumber
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for LineNumber
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for LineNumber
[src]

impl Ord for LineNumber
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for LineNumber
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for LineNumber
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for LineNumber
[src]

Returns the "default value" for a type. Read more

impl Numbering for LineNumber
[src]

The token type accepted by the numbering.

Updates the numbering based on the contents of the buffer, adding it to the current numbering. Read more

Adds the token to the numbering.