Struct parse_hosts::Line [] [src]

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

Formatted line in /etc/hosts.

Methods

impl Line<'static>
[src]

[src]

Creates an empty line.

[src]

Creates a line directly from data

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

[src]

Creates a line from a string.

[src]

Creates a line directly from a comment.

[src]

Creates a line from data and a comment.

[src]

Gets the IP for this line.

[src]

Gets the IP for this line.

[src]

Gets the data from this line.

[src]

Gets the comment from this line.

[src]

Strips the comment from the line.

[src]

Makes an owned version of the line.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

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

[src]

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

[src]

This method tests for !=.

impl FromStr for Line<'static>
[src]

The associated error which can be returned from parsing.

[src]

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

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

[src]

Formats the value using the given formatter. Read more