We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Spanned
1 parent 9aae5b4 commit 655c8d6Copy full SHA for 655c8d6
src/events/mod.rs
@@ -53,13 +53,13 @@ use crate::reader::Span;
53
use crate::utils::write_cow_string;
54
use attributes::{Attribute, Attributes};
55
56
-/// A trait for get a span information
+/// A trait for acquiring the start and end locations of a parsing event in an input
57
#[cfg(feature = "span")]
58
pub trait Spanned {
59
- /// Returns a span that type is occupied in the input
+ /// Returns a span over the location of a parsing event
60
fn span(&self) -> Span;
61
62
- /// Sets the span of this holder to a given value
+ /// Sets the span of this parsing event to a given value
63
fn with_span(self, span: Span) -> Self;
64
}
65
0 commit comments