Enum java_properties::LineContent
source · pub enum LineContent {
Comment(String),
KVPair(String, String),
}
Expand description
Parsed content of the line.
Variants§
Trait Implementations§
source§impl Clone for LineContent
impl Clone for LineContent
source§fn clone(&self) -> LineContent
fn clone(&self) -> LineContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LineContent
impl Debug for LineContent
source§impl Display for LineContent
impl Display for LineContent
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 Hash for LineContent
impl Hash for LineContent
source§impl Ord for LineContent
impl Ord for LineContent
source§fn cmp(&self, other: &LineContent) -> Ordering
fn cmp(&self, other: &LineContent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LineContent> for LineContent
impl PartialEq<LineContent> for LineContent
source§fn eq(&self, other: &LineContent) -> bool
fn eq(&self, other: &LineContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LineContent> for LineContent
impl PartialOrd<LineContent> for LineContent
source§fn partial_cmp(&self, other: &LineContent) -> Option<Ordering>
fn partial_cmp(&self, other: &LineContent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for LineContent
impl StructuralEq for LineContent
impl StructuralPartialEq for LineContent
Auto Trait Implementations§
impl RefUnwindSafe for LineContent
impl Send for LineContent
impl Sync for LineContent
impl Unpin for LineContent
impl UnwindSafe for LineContent
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