pub struct RoundTripConstructor {
composer: CommentPreservingComposer,
position: Position,
limits: Limits,
}Expand description
Comment-preserving constructor that maintains comments during parsing
Fields§
§composer: CommentPreservingComposer§position: Position§limits: LimitsImplementations§
Source§impl RoundTripConstructor
impl RoundTripConstructor
Sourcepub fn new(input: String) -> Self
pub fn new(input: String) -> Self
Create a new round-trip constructor with comment preservation
Sourcepub fn with_limits(input: String, limits: Limits) -> Self
pub fn with_limits(input: String, limits: Limits) -> Self
Create a new round-trip constructor with custom limits
Sourcefn parse_with_comments(&mut self) -> Result<Option<CommentedValue>>
fn parse_with_comments(&mut self) -> Result<Option<CommentedValue>>
Parse the input and build CommentedValue tree
Trait Implementations§
Source§impl CommentPreservingConstructor for RoundTripConstructor
impl CommentPreservingConstructor for RoundTripConstructor
Source§fn construct_commented(&mut self) -> Result<Option<CommentedValue>>
fn construct_commented(&mut self) -> Result<Option<CommentedValue>>
Construct a single value with comments
Source§fn check_data(&self) -> bool
fn check_data(&self) -> bool
Check if there are more values to construct
Auto Trait Implementations§
impl Freeze for RoundTripConstructor
impl !RefUnwindSafe for RoundTripConstructor
impl Send for RoundTripConstructor
impl Sync for RoundTripConstructor
impl Unpin for RoundTripConstructor
impl !UnwindSafe for RoundTripConstructor
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