pub struct CommentPreservingComposer { /* private fields */ }Expand description
A composer that preserves comments during parsing
Implementations§
Source§impl CommentPreservingComposer
impl CommentPreservingComposer
Sourcepub fn with_limits(input: String, limits: Limits) -> Self
pub fn with_limits(input: String, limits: Limits) -> Self
Create a new comment-preserving composer with limits
Sourcepub fn compose_document(&mut self) -> Result<Option<CommentedValue>>
pub fn compose_document(&mut self) -> Result<Option<CommentedValue>>
Compose a single document with comment preservation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommentPreservingComposer
impl !RefUnwindSafe for CommentPreservingComposer
impl Send for CommentPreservingComposer
impl Sync for CommentPreservingComposer
impl Unpin for CommentPreservingComposer
impl !UnwindSafe for CommentPreservingComposer
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