Struct rustfix::Snippet [] [src]

pub struct Snippet {
    pub file_name: String,
    pub line_range: LineRange,
    pub range: Range<usize>,
    pub text: (String, String, String),
}

Fields

leading surrounding text, text to replace, trailing surrounding text

This split is useful for higlighting the part that gets replaced

Trait Implementations

impl Debug for Snippet
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Snippet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Snippet
[src]

[src]

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

1.3.0
[src]

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

impl PartialEq for Snippet
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Snippet

impl Sync for Snippet