Skip to main content

Crate rlsp_yaml_parser

Crate rlsp_yaml_parser 

Source

Re-exports§

pub use loader::LoadError;
pub use loader::LoadMode;
pub use loader::Loader;
pub use loader::LoaderBuilder;
pub use loader::LoaderOptions;
pub use loader::load;
pub use node::Document;
pub use node::Node;

Modules§

encoding
loader
Event-to-AST loader.
node
YAML AST node types.

Structs§

Error
A parse error produced by the streaming parser.
Line
A single logical line extracted from the input.
LineBuffer
A one-line-lookahead buffer over a &'input str.
Pos
A position within the input stream.
Span
A half-open span [start, end) within the input stream.

Enums§

BreakType
The type of line terminator that ends a Line.
Chomp
Block scalar chomping mode per YAML 1.2 §8.1.1.2.
CollectionStyle
The style (block or flow) of a collection (sequence or mapping).
Event
A high-level YAML parse event.
ScalarStyle
The style in which a scalar value was written in the source.

Constants§

MAX_ANCHOR_NAME_BYTES
Maximum byte length of an anchor name accepted from untrusted input.
MAX_COLLECTION_DEPTH
Maximum combined block-collection nesting depth accepted from untrusted input.
MAX_COMMENT_LEN
Maximum byte length of a comment body accepted from untrusted input.
MAX_DIRECTIVES_PER_DOC
Maximum number of directives (%YAML + %TAG combined) per document.
MAX_RESOLVED_TAG_LEN
Maximum byte length of the fully-resolved tag string after prefix expansion.
MAX_TAG_HANDLE_BYTES
Maximum byte length of a %TAG handle (e.g. !foo!) accepted from untrusted input.
MAX_TAG_LEN
Maximum byte length of a tag accepted from untrusted input.

Functions§

parse_events
Parse a YAML string into a lazy event stream.