pub struct PreScan {
pub cleaned_yaml: String,
pub items: Vec<PreItem>,
pub nested_comments: Vec<NestedComment>,
pub nested_fills: Vec<Vec<CommentPathSegment>>,
pub warnings: Vec<Diagnostic>,
pub fill_target_errors: Vec<String>,
}Expand description
Output of prescan_fence_content.
Fields§
§cleaned_yaml: StringYAML with !must_fill tags stripped and comment lines removed; fed to serde_saphyr.
items: Vec<PreItem>Top-level fields and comments in source order.
nested_comments: Vec<NestedComment>§nested_fills: Vec<Vec<CommentPathSegment>>Paths of nested fields tagged !must_fill, relative to the fence root
(the first segment is the owning top-level key). Applied onto the
value tree by the assembler. Top-level fills ride on PreItem::Field.
warnings: Vec<Diagnostic>§fill_target_errors: Vec<String>!must_fill on mappings — turned into ParseError::InvalidStructure by the parser.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreScan
impl RefUnwindSafe for PreScan
impl Send for PreScan
impl Sync for PreScan
impl Unpin for PreScan
impl UnsafeUnpin for PreScan
impl UnwindSafe for PreScan
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