Struct parse_hosts::Line [] [src]

pub struct Line<'a> { /* fields omitted */ }

Formatted line in /etc/hosts.

Methods

impl Line<'static>
[src]

Creates an empty line.

Creates a line directly from data

impl<'a> Line<'a>
[src]

Creates a line from a string.

Creates a line directly from a comment.

Creates a line from data and a comment.

Gets the IP for this line.

Gets the IP for this line.

Gets the data from this line.

Gets the comment from this line.

Strips the comment from the line.

Makes an owned version of the line.

Trait Implementations

impl<'a> Clone for Line<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Line<'a>
[src]

Formats the value using the given formatter.

impl<'a> Eq for Line<'a>
[src]

impl<'a> PartialEq for Line<'a>
[src]

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

This method tests for !=.

impl FromStr for Line<'static>
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl<'a> Display for Line<'a>
[src]

Formats the value using the given formatter. Read more