Struct regex::internal::InputAt[][src]

pub struct InputAt {
    pos: usize,
    c: Char,
    byte: Option<u8>,
    len: usize,
}

Represents a location in the input.

Fields

Methods

impl InputAt
[src]

Returns true iff this position is at the beginning of the input.

Returns true iff this position is past the end of the input.

Returns the character at this position.

If this position is just before or after the input, then an absent character is returned.

Returns the byte at this position.

Returns the UTF-8 width of the character at this position.

Returns whether the UTF-8 width of the character at this position is zero.

Returns the byte offset of this position.

Returns the byte offset of the next position in the input.

Trait Implementations

impl Clone for InputAt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InputAt
[src]

impl Debug for InputAt
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for InputAt

impl Sync for InputAt