pub struct LineEntry {
pub number: usize,
pub raw_string: String,
pub is_deleted: bool,
pub is_last_line: bool,
}Fields§
§number: usize§raw_string: String§is_deleted: boolUsed in ExtraBlankLineFixer
is_last_line: boolUsed in EndingBlankLineChecker
Implementations§
Source§impl LineEntry
impl LineEntry
pub fn new<T>(number: usize, raw_string: T, is_last_line: bool) -> Self
pub fn is_empty_or_comment(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn is_comment(&self) -> bool
pub fn get_key(&self) -> Option<&str>
pub fn get_value(&self) -> Option<&str>
pub fn mark_as_deleted(&mut self)
pub fn get_comment(&self) -> Option<&str>
pub fn get_substitution_keys(&self) -> Vec<&str>
Trait Implementations§
impl Eq for LineEntry
impl StructuralPartialEq for LineEntry
Auto Trait Implementations§
impl Freeze for LineEntry
impl RefUnwindSafe for LineEntry
impl Send for LineEntry
impl Sync for LineEntry
impl Unpin for LineEntry
impl UnwindSafe for LineEntry
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