pub struct Deb822(/* private fields */);Expand description
A deb822 document.
Implementations§
Source§impl Deb822
impl Deb822
Sourcepub fn iter(&self) -> impl Iterator<Item = &Paragraph>
pub fn iter(&self) -> impl Iterator<Item = &Paragraph>
Iterate over the paragraphs in the document.
Sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Paragraph>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Paragraph>
Iterate over the paragraphs in the document, mutably.
Sourcepub fn from_reader<R: Read>(r: R) -> Result<Self, Error>
pub fn from_reader<R: Read>(r: R) -> Result<Self, Error>
Read from a reader.
Sourcepub fn iter_paragraphs_from_reader<R: BufRead>(reader: R) -> ParagraphReader<R> ⓘ
pub fn iter_paragraphs_from_reader<R: BufRead>(reader: R) -> ParagraphReader<R> ⓘ
Stream paragraphs from a reader.
This returns an iterator that reads and parses paragraphs one at a time, which is more memory-efficient for large files.
Trait Implementations§
Source§impl IntoIterator for Deb822
impl IntoIterator for Deb822
impl Eq for Deb822
impl StructuralPartialEq for Deb822
Auto Trait Implementations§
impl Freeze for Deb822
impl RefUnwindSafe for Deb822
impl Send for Deb822
impl Sync for Deb822
impl Unpin for Deb822
impl UnwindSafe for Deb822
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