pub enum Event {
AsdfVersion(String),
StandardVersion(String),
Comment(String),
BlockIndex(Vec<u64>),
TreeStart {
start: usize,
},
Yaml(YamlEvent),
TreeEnd {
start: usize,
end: usize,
text: Option<String>,
},
Block(BlockLocation),
End,
}Expand description
One event from the stream.
Variants§
AsdfVersion(String)
The #ASDF line’s version.
StandardVersion(String)
The #ASDF_STANDARD line’s version.
Comment(String)
A comment line, without its leading #.
BlockIndex(Vec<u64>)
The offsets listed in the file’s block index.
Reported as the file states them, whether or not they check out;
judging the index is Layout’s job, not the stream’s.
TreeStart
The YAML tree begins here.
Yaml(YamlEvent)
One YAML event from inside the tree.
TreeEnd
The YAML tree ends here.
text carries the tree itself when EventOptions::buffer_tree was
asked for, which is what asdf events --cap-tree prints.
Block(BlockLocation)
A binary block.
End
The end of the file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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