Struct std::net::parser::Parser[][src]

struct Parser<'a> {
    state: &'a [u8],
}

Fields

state: &'a [u8]

Implementations

Run a parser, and restore the pre-parse state if it fails.

Run a parser, but fail if the entire input wasn’t consumed. Doesn’t run atomically.

Peek the next character from the input

Read the next character from the input

Read the next character from the input if it matches the target.

Helper for reading separators in an indexed loop. Reads the separator character iff index > 0, then runs the parser. When used in a loop, the separator character will only be read on index > 0 (see read_ipv4_addr for an example)

Read an IPv4 address.

Read an IPv6 Address.

Read an IP Address, either IPv4 or IPv6.

Read a : followed by a port in base 10.

Read a % followed by a scope ID in base 10.

Read an IPv4 address with a port.

Read an IPv6 address with a port.

Read an IP address with a port

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

Performs the conversion.

Performs the conversion.

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.