pub struct Line { /* private fields */ }
Expand description
A line read from a properties file.
Implementations§
Source§impl Line
impl Line
Sourcepub fn line_number(&self) -> usize
pub fn line_number(&self) -> usize
Returns the 1-based line number.
Sourcepub fn content(&self) -> &LineContent
pub fn content(&self) -> &LineContent
Returns the content of the line.
Sourcepub fn consume_content(self) -> LineContent
pub fn consume_content(self) -> LineContent
Returns the content of the line, consuming it in the process.
Trait Implementations§
Source§impl From<Line> for LineContent
impl From<Line> for LineContent
Source§fn from(line: Line) -> LineContent
fn from(line: Line) -> LineContent
Converts to this type from the input type.
Source§impl Ord for Line
impl Ord for Line
Source§impl PartialOrd for Line
impl PartialOrd for Line
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more