pub trait BorrowedComposer<'a> {
// Required methods
fn check_document(&self) -> bool;
fn compose_document(&mut self) -> Result<Option<BorrowedValue<'a>>>;
fn position(&self) -> Position;
fn reset(&mut self);
}Expand description
Trait for zero-copy YAML composers
Required Methods§
Sourcefn check_document(&self) -> bool
fn check_document(&self) -> bool
Check if there are more documents available
Sourcefn compose_document(&mut self) -> Result<Option<BorrowedValue<'a>>>
fn compose_document(&mut self) -> Result<Option<BorrowedValue<'a>>>
Compose the next document with minimal allocations