Struct dockerfile_parser::Span [−][src]
Expand description
A byte-index tuple representing a span of characters in a string
Fields
start: usize
end: usize
Implementations
Determines the 0-indexed line number and line-relative position of this span.
A reference to the Dockerfile is necessary to examine the original input
string. Note that if the original span crosses a newline boundary, the
relative span’s end
field will be larger than the line length.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
Mutably borrows from an owned value. Read more