pub struct DelinkFile {
pub name: String,
pub sections: Sections,
pub migrated_sections: Sections,
pub complete: bool,
pub categories: Categories,
pub comments: Comments,
/* private fields */
}Fields§
§name: String§sections: Sections§migrated_sections: Sections§complete: bool§categories: Categories§comments: CommentsImplementations§
Source§impl DelinkFile
impl DelinkFile
pub fn new(options: DelinkFileOptions) -> Self
pub fn parse( first_line: &CommentedLine, lines: &mut Peekable<CommentedLineIterator>, context: &mut ParseContext, inherit_sections: &Sections, ) -> Result<Self, DelinkFileParseError>
pub fn split_file_ext(&self) -> (&str, &str)
pub fn gap(&self) -> bool
pub fn migrated(&self) -> bool
pub fn migrate_section_by_name( &mut self, name: &str, ) -> Result<(), SectionsError>
Trait Implementations§
Source§impl Clone for DelinkFile
impl Clone for DelinkFile
Source§fn clone(&self) -> DelinkFile
fn clone(&self) -> DelinkFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DelinkFile
impl RefUnwindSafe for DelinkFile
impl Send for DelinkFile
impl Sync for DelinkFile
impl Unpin for DelinkFile
impl UnsafeUnpin for DelinkFile
impl UnwindSafe for DelinkFile
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